diff options
author | 2012-07-29 17:33:55 +0000 | |
---|---|---|
committer | 2012-07-29 17:33:55 +0000 | |
commit | 8d1cc589a697da26ce2d2cc425f91640b2d70feb (patch) | |
tree | 844b601c582147a320764edd6daca9b1d3478f45 | |
parent | - introduce xlowercase() and allow lowercase() to fail gracefully (diff) | |
download | wireguard-openbsd-8d1cc589a697da26ce2d2cc425f91640b2d70feb.tar.xz wireguard-openbsd-8d1cc589a697da26ce2d2cc425f91640b2d70feb.zip |
fix bogus permfail when no MX is defined on a valid domain.
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/dns.c b/usr.sbin/smtpd/dns.c index f2abc42272d..2c4d70a4662 100644 --- a/usr.sbin/smtpd/dns.c +++ b/usr.sbin/smtpd/dns.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dns.c,v 1.49 2012/07/09 12:16:24 eric Exp $ */ +/* $OpenBSD: dns.c,v 1.50 2012/07/29 17:33:55 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -247,7 +247,7 @@ dns_asr_dispatch_mx(struct dnssession *s) return; } - if (ar.ar_errno || ar.ar_h_errno || ar.ar_rcode == NXDOMAIN) { + if (ar.ar_h_errno && ar.ar_h_errno != NO_DATA) { query->error = ar.ar_rcode == NXDOMAIN ? \ DNS_ENONAME : dns_asr_error(ar.ar_h_errno); dns_reply(query, IMSG_DNS_HOST_END); |