]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Revert "Remove some unused code referencing pipe_names[]"
authorVolker Lendecke <vl@samba.org>
Fri, 25 Apr 2008 14:34:05 +0000 (16:34 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 25 Apr 2008 14:34:05 +0000 (16:34 +0200)
This reverts commit d8a04b798c44c26a91a37fa7090dd071a1909166.

source/rpc_client/cli_pipe.c

index b9d184f023a53d90208a61641e5d6af1276882d4..bc9a4268d0fa8156ea0af1bcd6a8f0f2640e81be 100644 (file)
@@ -1672,6 +1672,23 @@ static bool check_bind_response(RPC_HDR_BA *hdr_ba, const int pipe_idx, RPC_IFAC
                DEBUG(4,("Ignoring length check -- ASU bug (server didn't fill in the pipe name correctly)"));
        }
 
+# if 0 /* JERRY -- apparently ASU forgets to fill in the server pipe name sometimes */
+       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));
+               return False;
+       }
+       
+       DEBUG(5,("bind_rpc_pipe: server pipe_name found: %s\n", pipe_names[i].server_pipe ));
+
+       if (pipe_names[pipe_idx].server_pipe == NULL) {
+               DEBUG(2,("bind_rpc_pipe: pipe name %s unsupported\n", hdr_ba->addr.str));
+               return False;
+       }
+#endif         /* JERRY */
+
        /* check the transfer syntax */
        if ((hdr_ba->transfer.if_version != transfer->if_version) ||
             (memcmp(&hdr_ba->transfer.uuid, &transfer->uuid, sizeof(transfer->uuid)) !=0)) {