]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_r...
authorGerald Carter <jerry@samba.org>
Mon, 24 Nov 2003 20:22:41 +0000 (20:22 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 24 Nov 2003 20:22:41 +0000 (20:22 +0000)
source/rpc_client/cli_pipe.c

index aca0494dbddeab7540e724db466640c49bba6810..751777792028649c1c5659cbb32cd5e7b3e3a11d 100644 (file)
@@ -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));