summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/lka.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2018-05-29 20:43:08 +0000
committerEric Faurot <eric@cvs.openbsd.org>2018-05-29 20:43:08 +0000
commit36d2bf48e18819f17faed036b5dc849f0ceff14f (patch)
tree607254db9648399ed5a81ba99fc2727c3e530137 /usr.sbin/smtpd/lka.c
parent3f72f9bca7611da6cecb0e72eed85d01d9375cd4 (diff)
no need to parse and dump the relayhost in the lookup process.
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/lka.c')
-rw-r--r--usr.sbin/smtpd/lka.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index a2fc727d971..591a79d931c 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.203 2018/05/24 11:38:24 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.204 2018/05/29 20:43:07 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -324,10 +324,8 @@ lka_imsg(struct mproc *p, struct imsg *imsg)
else if (ret == 0)
m_add_int(p, LKA_PERMFAIL);
else {
- snprintf(buf, sizeof(buf), "%s",
- relayhost_to_text(&lk.relayhost));
m_add_int(p, LKA_OK);
- m_add_string(p, buf);
+ m_add_string(p, lk.relayhost);
}
}
m_close(p);