summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ntpd/ntp_dns.c')
-rw-r--r--usr.sbin/ntpd/ntp_dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntp_dns.c b/usr.sbin/ntpd/ntp_dns.c
index 451b358965f..37dea75bbd2 100644
--- a/usr.sbin/ntpd/ntp_dns.c
+++ b/usr.sbin/ntpd/ntp_dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp_dns.c,v 1.7 2015/01/13 02:28:56 bcook Exp $ */
+/* $OpenBSD: ntp_dns.c,v 1.8 2015/01/21 03:14:10 bcook Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@@ -167,12 +167,12 @@ dns_dispatch_imsg(void)
buf = NULL;
break;
}
- if (buf)
- imsg_close(ibuf_dns, buf);
}
host_dns_free(hn);
hn = NULL;
}
+ if (buf)
+ imsg_close(ibuf_dns, buf);
break;
default:
break;