Fixed comparison in rpcprotocol.

Should be logical OR instead of logical AND.