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:
1d3bd45
)
s4:torture:smb2: fix segfault on error condition in the durable-open.delete_on_close2...
author
Michael Adam
<obnox@samba.org>
Wed, 13 Feb 2013 14:05:40 +0000
(15:05 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 18 Feb 2013 14:56:04 +0000
(15:56 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/torture/smb2/durable_open.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/durable_open.c
b/source4/torture/smb2/durable_open.c
index 89a6be854bb5f0218652c80bbf62352df5e69b6c..eea87470376a65595464c5b49902e286e9308314 100644
(file)
--- a/
source4/torture/smb2/durable_open.c
+++ b/
source4/torture/smb2/durable_open.c
@@
-897,13
+897,15
@@
static bool test_durable_open_delete_on_close2(struct torture_context *tctx,
CHECK_VAL(io.out.oplock_level, smb2_util_oplock_level("b"));
done:
- if (h != NULL) {
- smb2_util_close(tree, *h);
- }
+ if (tree != NULL) {
+ if (h != NULL) {
+ smb2_util_close(tree, *h);
+ }
- smb2_util_unlink(tree, fname);
+
smb2_util_unlink(tree, fname);
- talloc_free(tree);
+ talloc_free(tree);
+ }
talloc_free(mem_ctx);