diff options
Diffstat (limited to 'dns.c')
-rw-r--r-- | dns.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dns.c,v 1.4 2003/05/14 23:29:22 jakob Exp $ */ | 1 | /* $OpenBSD: dns.c,v 1.5 2003/05/15 02:27:15 jakob Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2003 Wesley Griffin. All rights reserved. | 4 | * Copyright (c) 2003 Wesley Griffin. All rights reserved. |
@@ -44,7 +44,7 @@ | |||
44 | #include "uuencode.h" | 44 | #include "uuencode.h" |
45 | 45 | ||
46 | extern char *__progname; | 46 | extern char *__progname; |
47 | RCSID("$OpenBSD: dns.c,v 1.4 2003/05/14 23:29:22 jakob Exp $"); | 47 | RCSID("$OpenBSD: dns.c,v 1.5 2003/05/15 02:27:15 jakob Exp $"); |
48 | 48 | ||
49 | #ifndef LWRES | 49 | #ifndef LWRES |
50 | static const char *errset_text[] = { | 50 | static const char *errset_text[] = { |
@@ -183,6 +183,7 @@ verify_host_key_dns(const char *hostname, struct sockaddr *address, | |||
183 | /* Only accept validated answers */ | 183 | /* Only accept validated answers */ |
184 | if (!fingerprints->rri_flags & RRSET_VALIDATED) { | 184 | if (!fingerprints->rri_flags & RRSET_VALIDATED) { |
185 | error("Ignored unvalidated fingerprint from DNS."); | 185 | error("Ignored unvalidated fingerprint from DNS."); |
186 | freerrset(fingerprints); | ||
186 | return DNS_VERIFY_ERROR; | 187 | return DNS_VERIFY_ERROR; |
187 | } | 188 | } |
188 | #endif | 189 | #endif |
@@ -193,6 +194,7 @@ verify_host_key_dns(const char *hostname, struct sockaddr *address, | |||
193 | if (!dns_read_key(&hostkey_algorithm, &hostkey_digest_type, | 194 | if (!dns_read_key(&hostkey_algorithm, &hostkey_digest_type, |
194 | &hostkey_digest, &hostkey_digest_len, hostkey)) { | 195 | &hostkey_digest, &hostkey_digest_len, hostkey)) { |
195 | error("Error calculating host key fingerprint."); | 196 | error("Error calculating host key fingerprint."); |
197 | freerrset(fingerprints); | ||
196 | return DNS_VERIFY_ERROR; | 198 | return DNS_VERIFY_ERROR; |
197 | } | 199 | } |
198 | 200 | ||