Author: abartlet
Date: 2006-10-13 09:14:43 +0000 (Fri, 13 Oct 2006)
New Revision: 19262

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19262

Log:
Don't DEBUG() an unitialised variable

Modified:
   branches/SAMBA_4_0/source/nbt_server/dgram/browse.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/dgram/browse.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/dgram/browse.c 2006-10-13 07:25:51 UTC 
(rev 19261)
+++ branches/SAMBA_4_0/source/nbt_server/dgram/browse.c 2006-10-13 09:14:43 UTC 
(rev 19262)
@@ -56,7 +56,10 @@
        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;

Reply via email to