summaryrefslogtreecommitdiffstats
path: root/source
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
commit2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62 (patch)
tree21b24785803796ed2b329b20a687658c0b13abe0 /source
parent51c985be7fbfe5627c5b2590e7610653e7be98e3 (diff)
downloadsamba-2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62.tar.gz
samba-2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62.tar.xz
samba-2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62.zip
Ensure the output cli can't have spurious values if the connection fails...
Diffstat (limited to 'source')
-rw-r--r--source/libsmb/cliconnect.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c
index 75560da6766..bd79f23213a 100644
--- a/source/libsmb/cliconnect.c
+++ b/source/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);