git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c70a5b
)
s4:torture assert that we get a Mailslot allocated before we dereference
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 4 Jun 2009 05:10:36 +0000
(15:10 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 4 Jun 2009 05:10:36 +0000
(15:10 +1000)
source4/torture/nbt/dgram.c
patch
|
blob
|
history
diff --git
a/source4/torture/nbt/dgram.c
b/source4/torture/nbt/dgram.c
index 8eb315127a570abf6e04ab366151d2e41e3b910d..568e9c3e26e86eb4768a6dab2d690e81b3f2dfe1 100644
(file)
--- 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;