git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a068182
)
Ensure the output cli can't have spurious values if the connection fails...
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 31 Dec 2001 13:06:10 +0000
(13:06 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 31 Dec 2001 13:06:10 +0000
(13:06 +0000)
(This used to be commit
2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62
)
source3/libsmb/cliconnect.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/cliconnect.c
b/source3/libsmb/cliconnect.c
index 75560da6766f2f7406000a31862a5d0fc4e3734c..bd79f23213a2e7d2f7647d789d8adcd66d7f697e 100644
(file)
--- 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);