Skip to content

Commit df0da98

Browse files
alexrfordnickrolfe
andcommitted
Update ruby/ql/lib/codeql/ruby/security/OpenSSL.qll
Co-authored-by: Nick Rolfe <[email protected]>
1 parent 27a40fb commit df0da98

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ruby/ql/lib/codeql/ruby/security/OpenSSL.qll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,10 @@ module Ciphers {
245245
string getCanonicalCipherName(string name) {
246246
isOpenSSLCipher(name) and
247247
(
248-
if exists(string special | special = getSpecialCanonicalCipherName(name))
249-
then result = getSpecialCanonicalCipherName(name)
250-
else result = name.toUpperCase()
248+
result = getSpecialCanonicalCipherName(name)
249+
or
250+
not exists(getSpecialCanonicalCipherName(name)) and
251+
result = name.toUpperCase()
251252
)
252253
}
253254

0 commit comments

Comments
 (0)