summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_pipe.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-11-24 20:22:41 +0000
committerGerald Carter <jerry@samba.org>2003-11-24 20:22:41 +0000
commitf7bf71a34cd2f2465bf4d9e586688bda5c6700f7 (patch)
tree102c9094f012d135cfd7fd22bc70952a33fd564a /source3/rpc_client/cli_pipe.c
parent9ce8270a8699e36e81fbb02666e24c57454de7e3 (diff)
downloadsamba-f7bf71a34cd2f2465bf4d9e586688bda5c6700f7.tar.gz
samba-f7bf71a34cd2f2465bf4d9e586688bda5c6700f7.tar.bz2
samba-f7bf71a34cd2f2465bf4d9e586688bda5c6700f7.zip
strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response()
(This used to be commit 84f0e97e5882375b765b818e89a6d96736cd5932)
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r--source3/rpc_client/cli_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index aca0494dbd..7517777920 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -1234,8 +1234,8 @@ static BOOL check_bind_response(RPC_HDR_BA *hdr_ba, const int pipe_idx, RPC_IFAC
if ( hdr_ba->addr.len <= 0)
return False;
- if ( (strequal(hdr_ba->addr.str, pipe_names[pipe_idx].client_pipe) != 0) &&
- (strequal(hdr_ba->addr.str, pipe_names[pipe_idx].server_pipe) != 0) )
+ if ( !strequal(hdr_ba->addr.str, pipe_names[pipe_idx].client_pipe) &&
+ !strequal(hdr_ba->addr.str, pipe_names[pipe_idx].server_pipe) )
{
DEBUG(4,("bind_rpc_pipe: pipe_name %s != expected pipe %s. oh well!\n",
pipe_names[i].server_pipe ,hdr_ba->addr.str));