Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
hph86 committed Feb 10, 2016
1 parent c60fbe9 commit ffd73cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sslscan/module/rating/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, **kwargs):
RatingRule(
"server.security.scsv",
rules=[
lambda v, i, kb: 1 if v is True else None
lambda v, i, kb: 1 if v else None
]
)
)
Expand Down
4 changes: 2 additions & 2 deletions sslscan/module/scan/server_scsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def run(self):
if scsv_cur_status is None:
continue

if scsv_cur_status is True:
if scsv_cur_status:
kb.set("server.security.scsv", True)
break

Expand All @@ -113,7 +113,7 @@ def run(self):
# server supports, the server has to proceed with the
# handshake, even if the SCSV suite is present (see RFC 7507,
# section 3).
if scsv_status is False and scsv_cur_status is False:
if not scsv_status and not scsv_cur_status:
kb.set("server.security.scsv", False)
break

Expand Down

0 comments on commit ffd73cc

Please sign in to comment.