From 4e61fcbef17b48ffd76dd9b9399b6f6df63e8079 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 24 Nov 2003 20:22:12 +0000 Subject: strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response() (This used to be commit 5e062f72baad6f7a70f1a3c8cf190535ccacc89e) --- source3/rpc_client/cli_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/rpc_client') 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)); -- cgit