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/raw | |
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/raw')
-rw-r--r-- | source4/torture/raw/context.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source4/torture/raw/context.c b/source4/torture/raw/context.c index 194d2de93b..b5f439b5e9 100644 --- a/source4/torture/raw/context.c +++ b/source4/torture/raw/context.c @@ -81,7 +81,6 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("create a second security context on the same transport\n"); session = smbcli_session_init(cli->transport); - talloc_increase_ref_count(cli->transport); setup.generic.level = RAW_SESSSETUP_GENERIC; setup.generic.in.sesskey = cli->transport->negotiate.sesskey; @@ -97,7 +96,6 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("create a third security context on the same transport, with vuid set\n"); session2 = smbcli_session_init(cli->transport); - talloc_increase_ref_count(cli->transport); session2->vuid = session->vuid; setup.generic.level = RAW_SESSSETUP_GENERIC; @@ -119,7 +117,6 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) if (cli->transport->negotiate.capabilities & CAP_EXTENDED_SECURITY) { printf("create a fourth security context on the same transport, without extended security\n"); session3 = smbcli_session_init(cli->transport); - talloc_increase_ref_count(cli->transport); session3->vuid = session->vuid; setup.generic.level = RAW_SESSSETUP_GENERIC; @@ -137,7 +134,6 @@ static BOOL test_session(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("use the same tree as the existing connection\n"); tree = smbcli_tree_init(session); - talloc_increase_ref_count(session); tree->tid = cli->tree->tid; printf("create a file using the new vuid\n"); @@ -228,7 +224,6 @@ static BOOL test_tree(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("create a second tree context on the same session\n"); tree = smbcli_tree_init(cli->session); - talloc_increase_ref_count(cli->session); tcon.generic.level = RAW_TCON_TCONX; tcon.tconx.in.flags = 0; |