summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/lka.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2011-10-23 15:36:54 +0000
committerEric Faurot <eric@cvs.openbsd.org>2011-10-23 15:36:54 +0000
commit7f7be081eacbf7bde7d297431b93f8a70307274c (patch)
tree1318a19a0492576bf87c65e3a34fd1606f702175 /usr.sbin/smtpd/lka.c
parentbd0c81af7c32d9f797ee6cefca04399f7335d4d4 (diff)
a few important fixes:
- use correct endianness when dumping/loading port - use the right flag set when dumping/loading flags - keep and use the authmap name when needed, rather than an id that might change when smtpd is restarted - dump/load the authmap name with the envelope - remove the rule struct from rq_batch as only the relay info is useful ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/lka.c')
-rw-r--r--usr.sbin/smtpd/lka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index 086c7395953..3f3f1bd6633 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.129 2011/10/23 09:30:06 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.130 2011/10/23 15:36:53 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -112,7 +112,7 @@ lka_imsg(struct imsgev *iev, struct imsg *imsg)
struct map_secret *map_secret;
secret = imsg->data;
- map = map_find(secret->secmapid);
+ map = map_findbyname(secret->mapname);
if (map == NULL)
fatalx("lka: secrets map not found");
map_secret = map_lookup(map->m_id, secret->host, K_SECRET);