summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-10-13 09:14:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:59 -0500
commitf1ed6d2c9bf696b8b101ee9d4f0f0a3959ec8447 (patch)
tree02aef135c8437aeaac62659b5bc32fc82389fb97 /source4
parent9ce0de670bc3a19a189fe45442b929ad0f2ec3b5 (diff)
downloadsamba-f1ed6d2c9bf696b8b101ee9d4f0f0a3959ec8447.tar.gz
samba-f1ed6d2c9bf696b8b101ee9d4f0f0a3959ec8447.tar.bz2
samba-f1ed6d2c9bf696b8b101ee9d4f0f0a3959ec8447.zip
r19262: Don't DEBUG() an unitialised variable
(This used to be commit 548c682fe5aff4657f53d7986642a87566f6f531)
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/dgram/browse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/nbt_server/dgram/browse.c b/source4/nbt_server/dgram/browse.c
index 37a00519ce..885ef8d6c6 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;