From edc0554f7cf96fb9a78a2cb4ca23f1f4c8dc8f74 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 14 Dec 1997 17:48:55 +0000 Subject: fix a bug that sometimes prevented smbclient from connecting with protocol < LANMAN1 (This used to be commit 95ad2c284dad9c5042ac113eb7067a10531d34a1) --- source3/client/clientutil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') 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); -- cgit