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/client/client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/client/client.c') diff --git a/source4/client/client.c b/source4/client/client.c index a24fd7bfd3..5e5d7e5dcd 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -1069,7 +1069,7 @@ static BOOL do_altname(char *name) ****************************************************************************/ static int cmd_quit(const char **cmd_ptr) { - smbcli_shutdown(cli); + talloc_free(cli); exit(0); /* NOTREACHED */ return 0; @@ -1263,7 +1263,7 @@ static int do_put(char *rname, char *lname, BOOL reput) } if (f == x_stdin) { - smbcli_shutdown(cli); + talloc_free(cli); exit(0); } @@ -3251,7 +3251,7 @@ static int process(char *base_directory) process_stdin(); } - smbcli_shutdown(cli); + talloc_free(cli); return rc; } @@ -3287,12 +3287,12 @@ static int do_message_op(void) if (!smbcli_transport_establish(cli, &calling, &called)) { d_printf("session request failed\n"); - smbcli_shutdown(cli); + talloc_free(cli); return 1; } send_message(); - smbcli_shutdown(cli); + talloc_free(cli); return 0; } -- cgit