From af7bd393dabc51cedafc1ea24cc9f7101c81f4bf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 31 Dec 2001 13:06:10 +0000 Subject: Ensure the output cli can't have spurious values if the connection fails... (This used to be commit 2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62) --- source3/libsmb/cliconnect.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/libsmb/cliconnect.c') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 75560da676..bd79f23213 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1205,7 +1205,13 @@ NTSTATUS cli_full_connection(struct cli_state **output_cli, struct nmb_name called; struct cli_state *cli; struct in_addr ip; - + + if (!output_cli) { + DEBUG(0, ("output_cli is NULL!?!")); + } + + *output_cli = NULL; + make_nmb_name(&calling, my_name, 0x0); make_nmb_name(&called , dest_host, 0x20); -- cgit