fix a bug that sometimes prevented smbclient from connecting with
authorAndrew Tridgell <tridge@samba.org>
Sun, 14 Dec 1997 17:48:55 +0000 (17:48 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 14 Dec 1997 17:48:55 +0000 (17:48 +0000)
protocol < LANMAN1

source/client/clientutil.c

index bf49c6b342be87272c4a6a95053135a6bfdd0393..ca908457389d19a125bdf94ed4cb8f85acb5580d 100644 (file)
@@ -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);