diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2011-03-09 00:34:02 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2011-03-09 00:34:02 +0000 |
commit | cfb8b447cbbb867ed9d7717f7ef1357d6154ebd6 (patch) | |
tree | 7b4c40616d3fe005b49878922e1cbdd205ad7fea /usr.sbin/smtpd/dns.c | |
parent | 68557265eccf8f10e3f16c3b904be70e744e3d74 (diff) |
*** empty log message ***
Diffstat (limited to 'usr.sbin/smtpd/dns.c')
-rw-r--r-- | usr.sbin/smtpd/dns.c | 6 |
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)); |