From ee57c76a687c72ac7e8dc7c135ab53baa7a42776 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 18 Jun 2005 00:02:36 +0000 Subject: r7704: - fixed open_nbt_connection() to return NULL when the connection failed - got rid of smbcli_shutdown() and use talloc_free() instead. (This used to be commit 1011b1bf51d420d6702ef448c894ea8ebeafa284) --- source4/torture/gentest.c | 2 +- source4/torture/locktest.c | 2 +- source4/torture/locktest2.c | 2 +- source4/torture/torture.c | 17 ++++++++++------- 4 files changed, 13 insertions(+), 10 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index a9d162b540..d6f5046820 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -164,7 +164,7 @@ static BOOL connect_servers(void) for (j=0;jtree)); ret = False; } - smbcli_shutdown(c); + talloc_free(c); return ret; } @@ -489,7 +492,7 @@ static BOOL run_tcon_test(void) if (NT_STATUS_IS_ERR(smbcli_tconX(cli, share, "?????", password))) { printf("%s refused 2nd tree connect (%s)\n", host, smbcli_errstr(cli->tree)); - smbcli_shutdown(cli); + talloc_free(cli); return False; } @@ -649,7 +652,7 @@ static BOOL run_tcon_devtype_test(void) if (!tcon_devtest(cli1, share, "FOOBA", NT_STATUS_BAD_DEVICE_TYPE)) ret = False; - smbcli_shutdown(cli1); + talloc_free(cli1); if (ret) printf("Passed tcondevtest\n"); -- cgit