summaryrefslogtreecommitdiff
path: root/dns.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-05-15 13:27:28 +1000
committerDamien Miller <djm@mindrot.org>2003-05-15 13:27:28 +1000
commitb0622653baa8e4136e116945fdd1c393ab0eaba3 (patch)
tree8b4ebb7caee7a4d22eb43250ff19d987318f840d /dns.c
parent5975cf12c309735fe3fd6a81782d46a11d166437 (diff)
- jakob@cvs.openbsd.org 2003/05/15 02:27:15
[dns.c] add missing freerrset
Diffstat (limited to 'dns.c')
-rw-r--r--dns.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dns.c b/dns.c
index 9b7a0e7a0..14ca13a48 100644
--- a/dns.c
+++ b/dns.c
@@ -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
46extern char *__progname; 46extern char *__progname;
47RCSID("$OpenBSD: dns.c,v 1.4 2003/05/14 23:29:22 jakob Exp $"); 47RCSID("$OpenBSD: dns.c,v 1.5 2003/05/15 02:27:15 jakob Exp $");
48 48
49#ifndef LWRES 49#ifndef LWRES
50static const char *errset_text[] = { 50static 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