Skip to content

Commit 06d975b

Browse files
chanel-yMathiasVP
authored andcommitted
Update powershell/ql/src/queries/security/cwe-319/UnsafeSMBSettings.ql
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
1 parent d70389f commit 06d975b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

powershell/ql/src/queries/security/cwe-319/UnsafeSMBSettings.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ abstract class SMBConfiguration extends CmdCall {
2020
Expr getMisconfiguredSmb2DialectMin() {
2121
exists(Expr dialectMin |
2222
dialectMin = this.getNamedArgument("smb2dialectmin") and
23-
dialectMin.getValue().toString().toLowerCase() in ["none", "smb202", "smb210"] and
23+
dialectMin.getValue().stringMatches(["none", "smb202", "smb210"]) and
2424
result = dialectMin
2525
)
2626
}

0 commit comments

Comments
 (0)