From: Andrew Bartlett Date: Thu, 4 Jun 2009 05:10:36 +0000 (+1000) Subject: s4:torture assert that we get a Mailslot allocated before we dereference X-Git-Tag: tdb-1.1.5~309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f762c30d1aa709146f80da5fb786201df7e668;p=thirdparty%2Fsamba.git s4:torture assert that we get a Mailslot allocated before we dereference --- diff --git a/source4/torture/nbt/dgram.c b/source4/torture/nbt/dgram.c index 8eb315127a5..568e9c3e26e 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;