Skip to content
This repository
Browse code

No need to assign when used once

  • Loading branch information...
commit 7d20d367e4ce83b73285b4f0be1db0ac71b3425d 1 parent f1c877c
Pieter Lexis authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  swede
3  swede
@@ -466,8 +466,7 @@ if __name__ == '__main__':
466 466
467 467 # Good, now let's verify
468 468 if record.usage == 1: # End-host cert
469   - cert = chain[0]
470   - if verifyCertMatch(record, cert):
  469 + if verifyCertMatch(record, chain[0]):
471 470 if verify_result == 0: # The cert chains to a valid CA cert according to the system-certificates
472 471 print 'SUCCESS (Usage 1): Certificate offered by the server matches the one mentioned in the TLSA record and chains to a valid CA certificate'
473 472 else:

0 comments on commit 7d20d36

Please sign in to comment.
Something went wrong with that request. Please try again.