From: Andrew Bartlett Date: Fri, 13 Oct 2006 09:14:43 +0000 (+0000) Subject: r19262: Don't DEBUG() an unitialised variable X-Git-Tag: samba-4.0.0alpha6~801^3~4514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1ed6d2c9bf696b8b101ee9d4f0f0a3959ec8447;p=thirdparty%2Fsamba.git r19262: Don't DEBUG() an unitialised variable (This used to be commit 548c682fe5aff4657f53d7986642a87566f6f531) --- diff --git a/source4/nbt_server/dgram/browse.c b/source4/nbt_server/dgram/browse.c index 37a00519ce0..885ef8d6c68 100644 --- a/source4/nbt_server/dgram/browse.c +++ b/source4/nbt_server/dgram/browse.c @@ -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;