]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19262: Don't DEBUG() an unitialised variable
authorAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2006 09:14:43 +0000 (09:14 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:59 +0000 (14:20 -0500)
(This used to be commit 548c682fe5aff4657f53d7986642a87566f6f531)

source4/nbt_server/dgram/browse.c

index 37a00519ce06427b7add2f124da41c3acb2dbf29..885ef8d6c681930279b897382afffa15ee0d86ed 100644 (file)
@@ -56,7 +56,10 @@ void nbtd_mailslot_browse_handler(struct dgram_mailslot_handler *dgmslot,
        struct nbt_name *name = &packet->data.msg.dest_name;
        NTSTATUS status;
 
-       if (browse == NULL) goto failed;
+       if (browse == NULL) {
+               status = NT_STATUS_INVALID_PARAMETER;
+               goto failed;
+       }
 
        status = dgram_mailslot_browse_parse(dgmslot, browse, packet, browse);
        if (!NT_STATUS_IS_OK(status)) goto failed;