summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-02 13:36:20 +0100
committerMichael Adam <obnox@samba.org>2012-02-03 11:10:29 +0100
commit87cf808edb6878187caf2ee533b59ac4d4415767 (patch)
tree9d20adc6645aaba1573762d7584123396012f41f /source4
parent5f19eb8e5813c7e089d12f8b7803740f9c2a94fa (diff)
downloadsamba-87cf808edb6878187caf2ee533b59ac4d4415767.tar.gz
samba-87cf808edb6878187caf2ee533b59ac4d4415767.tar.bz2
samba-87cf808edb6878187caf2ee533b59ac4d4415767.zip
s4:torture:smb2: check for success of talloc in secondary_tcon()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/notify.c4
1 files changed, 4 insertions, 0 deletions
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;