summaryrefslogtreecommitdiff
path: root/source4/nbt_server/dgram
diff options
context:
space:
mode:
Diffstat (limited to 'source4/nbt_server/dgram')
-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;