git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e62bd7e
)
r2738: free up the session information as soon as it is invalidated in the
author
Andrew Tridgell
<tridge@samba.org>
Tue, 28 Sep 2004 21:42:49 +0000
(21:42 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:59:28 +0000
(12:59 -0500)
RAW-CONTEXT test case
source/torture/raw/context.c
patch
|
blob
|
history
diff --git
a/source/torture/raw/context.c
b/source/torture/raw/context.c
index ad8245faaff9819899c9cab87258eb71b8de089d..33eab4a0c37fe5a1ff6d3d1e94cdd2b52b53dbdf 100644
(file)
--- a/
source/torture/raw/context.c
+++ b/
source/torture/raw/context.c
@@
-173,6
+173,7
@@
static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
printf("logoff the new vuid\n");
status = smb_raw_ulogoff(session);
CHECK_STATUS(status, NT_STATUS_OK);
+ talloc_free(session);
printf("the new vuid should not now be accessible\n");
status = smb_raw_write(tree, &wr);
@@
-186,7
+187,6
@@
static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
CHECK_STATUS(status, NT_STATUS_INVALID_HANDLE);
talloc_free(tree);
- talloc_free(session);
done:
return ret;