summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-31 13:06:10 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-31 13:06:10 +0000
commitaf7bd393dabc51cedafc1ea24cc9f7101c81f4bf (patch)
tree158edefd4cccf6e5b3b459d7d00e6c8b3b815a39
parenta0681820e687e576e78ddc91bd9b94a4099bc26a (diff)
downloadsamba-af7bd393dabc51cedafc1ea24cc9f7101c81f4bf.tar.gz
samba-af7bd393dabc51cedafc1ea24cc9f7101c81f4bf.tar.bz2
samba-af7bd393dabc51cedafc1ea24cc9f7101c81f4bf.zip
Ensure the output cli can't have spurious values if the connection fails...
(This used to be commit 2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62)
-rw-r--r--source3/libsmb/cliconnect.c8
1 files changed, 7 insertions, 1 deletions
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);