diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-06-04 15:10:36 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-06-04 15:10:36 +1000 |
commit | 44f762c30d1aa709146f80da5fb786201df7e668 (patch) | |
tree | 45825cd960689a9f6bf237078b757a28e809db36 /source4/torture | |
parent | 4c70a5b405d2ee6b8a47118fd731a0fb64dda2ff (diff) | |
download | samba-44f762c30d1aa709146f80da5fb786201df7e668.tar.gz samba-44f762c30d1aa709146f80da5fb786201df7e668.tar.bz2 samba-44f762c30d1aa709146f80da5fb786201df7e668.zip |
s4:torture assert that we get a Mailslot allocated before we dereference
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/nbt/dgram.c | 2 |
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; |