Give error message when module doesn't seem to contain
authorJelmer Vernooij <jelmer@samba.org>
Mon, 24 Mar 2003 18:38:59 +0000 (18:38 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 24 Mar 2003 18:38:59 +0000 (18:38 +0000)
pipe functions
(This used to be commit 4dd16790436d18f5ac5868538309128e3f8ad1cc)

source3/rpc_server/srv_pipe.c

index d6b774c5663405a8a85f0b21f2182849dd33fd14..2ab554f1223916a273537b5388a99e74eb49eecb 100644 (file)
@@ -810,6 +810,11 @@ BOOL api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p)
                                break;
                        }
                 }
+
+                               if (i == rpc_lookup_size) {
+                                       DEBUG(0, ("module %s doesn't provide functions for pipe %s!\m", p->name, p->name));
+                                       return False;
+                               }
        }
 
        /* decode the bind request */