No need to assign when used once
[public/dnssec-swede-utility.git] / swede
diff --git a/swede b/swede
index 036071a3cb6cf72ac56e96037f61f8c82a4887bd..02ebd165eddf7c25e327c0215e3bdc1359dad100 100755 (executable)
--- a/swede
+++ b/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: