summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-06-04 15:10:36 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-06-04 15:10:36 +1000
commit44f762c30d1aa709146f80da5fb786201df7e668 (patch)
tree45825cd960689a9f6bf237078b757a28e809db36
parent4c70a5b405d2ee6b8a47118fd731a0fb64dda2ff (diff)
downloadsamba-44f762c30d1aa709146f80da5fb786201df7e668.tar.gz
samba-44f762c30d1aa709146f80da5fb786201df7e668.tar.bz2
samba-44f762c30d1aa709146f80da5fb786201df7e668.zip
s4:torture assert that we get a Mailslot allocated before we dereference
-rw-r--r--source4/torture/nbt/dgram.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c
index 8eb315127a..568e9c3e26 100644
--- a/source4/torture/nbt/dgram.c
+++ b/source4/torture/nbt/dgram.c
@@ -341,6 +341,8 @@ static bool nbt_test_netlogon2(struct torture_context *tctx)
dgmslot = dgram_mailslot_temp(dgmsock, NBT_MAILSLOT_GETDC,
netlogon_handler, NULL);
+ torture_assert(tctx, dgmslot != NULL, "Error getting a Mailslot for GetDC reply");
+
ZERO_STRUCT(logon);
logon.command = LOGON_SAM_LOGON_REQUEST;
logon.req.logon.request_count = 0;