summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2011-03-09 00:34:02 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2011-03-09 00:34:02 +0000
commitcfb8b447cbbb867ed9d7717f7ef1357d6154ebd6 (patch)
tree7b4c40616d3fe005b49878922e1cbdd205ad7fea /usr.sbin/smtpd
parent68557265eccf8f10e3f16c3b904be70e744e3d74 (diff)
*** empty log message ***
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/dns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/dns.c b/usr.sbin/smtpd/dns.c
index 1599281bd1b..6752171455f 100644
--- a/usr.sbin/smtpd/dns.c
+++ b/usr.sbin/smtpd/dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dns.c,v 1.28 2010/12/19 11:24:17 gilles Exp $ */
+/* $OpenBSD: dns.c,v 1.29 2011/03/09 00:34:01 todd Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -236,7 +236,7 @@ dns_asr_handler(int fd, short event, void *arg)
if (ret == ASR_YIELD) {
free(ar.ar_cname);
query->error = 0;
- memcpy(&query->ss, &ar.ar_sa.sa, sizeof(ar.ar_sa.sa));
+ memcpy(&query->ss, &ar.ar_sa.sa, ar.ar_sa.sa.sa_len);
imsg_compose_event(query->asker, IMSG_DNS_HOST, 0, 0, -1, query,
sizeof(*query));
dns_asr_handler(-1, -1, dnssession);
@@ -385,7 +385,7 @@ dns_asr_mx_handler(int fd, short event, void *arg)
if (ret == ASR_YIELD) {
free(ar.ar_cname);
- memcpy(&query->ss, &ar.ar_sa.sa, sizeof(ar.ar_sa.sa));
+ memcpy(&query->ss, &ar.ar_sa.sa, ar.ar_sa.sa.sa_len);
query->error = 0;
imsg_compose_event(query->asker, IMSG_DNS_HOST, 0, 0, -1, query,
sizeof(*query));