From 87cf808edb6878187caf2ee533b59ac4d4415767 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 2 Feb 2012 13:36:20 +0100 Subject: s4:torture:smb2: check for success of talloc in secondary_tcon() Pair-Programmed-With: Stefan Metzmacher --- source4/torture/smb2/notify.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 4509be6a2c..b68ad55e96 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -1804,6 +1804,10 @@ static struct smb2_tree *secondary_tcon(struct smb2_tree *tree, torture_comment(tctx, "create a second tree context on the same session\n"); tree1 = smb2_tree_init(tree->session, tctx, false); + if (tree1 == NULL) { + torture_comment(tctx, "Out of memory\n"); + return NULL; + } ZERO_STRUCT(tcon.smb2); tcon.generic.level = RAW_TCON_SMB2; -- cgit