diff options
Diffstat (limited to 'src/forward.c')
-rw-r--r-- | src/forward.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/forward.c b/src/forward.c index a607959..71addb1 100644 --- a/src/forward.c +++ b/src/forward.c @@ -1394,8 +1394,11 @@ static int tcp_check_for_unsigned_zone(time_t now, struct dns_header *header, s struct crec *crecp = cache_find_by_name(NULL, name_start, now, F_DS); if (--(*keycount) == 0) - return STAT_BOGUS; - + { + free(packet); + return STAT_BOGUS; + } + if (crecp && (crecp->flags & F_DNSSECOK)) { free(packet); |