Skip to content

Commit 281feb3

Browse files
committed
[SMB] @mpgn review
Signed-off-by: XiaoliChan <30458572+XiaoliChan@users.noreply.github.com>
1 parent b79ddec commit 281feb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/protocols/smb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def create_conn_obj(self, no_smbv1=False):
592592
no_smbv1 = self.args.no_smbv1 if self.args.no_smbv1 else no_smbv1
593593

594594
# Initial negotiation
595-
if self.smbv1 is None:
595+
if not no_smbv1 and self.smbv1 is None:
596596
self.smbv1 = self.create_smbv1_conn()
597597
if self.smbv1:
598598
return True

0 commit comments

Comments
 (0)