diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-12-14 17:48:55 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-12-14 17:48:55 +0000 |
commit | 95ad2c284dad9c5042ac113eb7067a10531d34a1 (patch) | |
tree | bc2939bb6df2f207ce0c5fd4ed28475dd453ae6b /source/client/clientutil.c | |
parent | d80b0cb645f81d16734929a0b27a91c6650499bb (diff) | |
download | samba-95ad2c284dad9c5042ac113eb7067a10531d34a1.tar.gz samba-95ad2c284dad9c5042ac113eb7067a10531d34a1.tar.xz samba-95ad2c284dad9c5042ac113eb7067a10531d34a1.zip |
fix a bug that sometimes prevented smbclient from connecting with
protocol < LANMAN1
Diffstat (limited to 'source/client/clientutil.c')
-rw-r--r-- | source/client/clientutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/client/clientutil.c b/source/client/clientutil.c index bf49c6b342b..ca908457389 100644 --- a/source/client/clientutil.c +++ b/source/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); |