summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-14 17:48:55 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-14 17:48:55 +0000
commitedc0554f7cf96fb9a78a2cb4ca23f1f4c8dc8f74 (patch)
tree44e3948e7f0ca6c25f72b193f334e4af2e486c00 /source3/client
parent64f0348a3f994334abe64a4d4896109c3c8c9039 (diff)
downloadsamba-edc0554f7cf96fb9a78a2cb4ca23f1f4c8dc8f74.tar.gz
samba-edc0554f7cf96fb9a78a2cb4ca23f1f4c8dc8f74.tar.bz2
samba-edc0554f7cf96fb9a78a2cb4ca23f1f4c8dc8f74.zip
fix a bug that sometimes prevented smbclient from connecting with
protocol < LANMAN1 (This used to be commit 95ad2c284dad9c5042ac113eb7067a10531d34a1)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clientutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/client/clientutil.c b/source3/client/clientutil.c
index bf49c6b342..ca90845738 100644
--- a/source3/client/clientutil.c
+++ b/source3/client/clientutil.c
@@ -519,7 +519,9 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup)
Protocol = prots[SVAL(inbuf,smb_vwv0)].prot;
- if (Protocol < PROTOCOL_NT1) {
+ if (Protocol < PROTOCOL_LANMAN1) {
+ /* no extra params */
+ } else if (Protocol < PROTOCOL_NT1) {
sec_mode = SVAL(inbuf,smb_vwv1);
max_xmit = SVAL(inbuf,smb_vwv2);
sesskey = IVAL(inbuf,smb_vwv6);