diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-27 08:41:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:21 -0500 |
commit | aa12305945df5f1578250b56ae2f3653b051736f (patch) | |
tree | 30e072fca46873f0d59d736d65b96096326eec2a /source4/torture/basic | |
parent | 3aa3428bc93e6c8741b52eaa65d43f3a5abcee2e (diff) | |
download | samba-aa12305945df5f1578250b56ae2f3653b051736f.tar.gz samba-aa12305945df5f1578250b56ae2f3653b051736f.tar.bz2 samba-aa12305945df5f1578250b56ae2f3653b051736f.zip |
r2680: switched the libcli/raw/ code over to use talloc_reference(), which simplifies things quite a bit
(This used to be commit c82a9cf750829c4f6982ca3133295c8599023c4e)
Diffstat (limited to 'source4/torture/basic')
-rw-r--r-- | source4/torture/basic/secleak.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/torture/basic/secleak.c b/source4/torture/basic/secleak.c index 54fa3ecee6..998faec54e 100644 --- a/source4/torture/basic/secleak.c +++ b/source4/torture/basic/secleak.c @@ -27,7 +27,6 @@ static BOOL try_failed_login(struct smbcli_state *cli) NTSTATUS status; union smb_sesssetup setup; struct smbcli_session *session; - TALLOC_CTX *mem_ctx = talloc_init("failed_login"); session = smbcli_session_init(cli->transport); setup.generic.level = RAW_SESSSETUP_GENERIC; @@ -37,15 +36,13 @@ static BOOL try_failed_login(struct smbcli_state *cli) setup.generic.in.user = "INVALID-USERNAME"; setup.generic.in.domain = "INVALID-DOMAIN"; - status = smb_raw_session_setup(session, mem_ctx, &setup); + status = smb_raw_session_setup(session, session, &setup); + talloc_free(session); if (NT_STATUS_IS_OK(status)) { printf("Allowed session setup with invalid credentials?!\n"); return False; } - talloc_free(session); - talloc_free(mem_ctx); - return True; } |