Permalink
Browse files

No need to assign when used once

  • Loading branch information...
1 parent f1c877c commit 7d20d367e4ce83b73285b4f0be1db0ac71b3425d @pieterlexis committed Feb 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 swede
View
3 swede
@@ -466,8 +466,7 @@ if __name__ == '__main__':
# Good, now let's verify
if record.usage == 1: # End-host cert
- cert = chain[0]
- if verifyCertMatch(record, cert):
+ if verifyCertMatch(record, chain[0]):
if verify_result == 0: # The cert chains to a valid CA cert according to the system-certificates
print 'SUCCESS (Usage 1): Certificate offered by the server matches the one mentioned in the TLSA record and chains to a valid CA certificate'
else:

0 comments on commit 7d20d36

Please sign in to comment.