s4:torture assert that we get a Mailslot allocated before we dereference
authorAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jun 2009 05:10:36 +0000 (15:10 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jun 2009 05:10:36 +0000 (15:10 +1000)
source4/torture/nbt/dgram.c

index 8eb315127a570abf6e04ab366151d2e41e3b910d..568e9c3e26e86eb4768a6dab2d690e81b3f2dfe1 100644 (file)
@@ -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;