summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/lka.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-10-16 22:26:28 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-10-16 22:26:28 +0000
commitf4b0f9cfdae9f86695a811d29b9699d027438631 (patch)
tree7bfbbc669b8ea37602118b3798bcdf4d314f303e /usr.sbin/smtpd/lka.c
parenta38b6d1ee33d3d05cd53bd8d096b35cb9717780c (diff)
as of now, "accept for all deliver to mbox" is a valid syntax, sadly lka is
not aware of this and will fatal() when it attempts to resolve a recipient for a destination that's not C_DOM or C_VDOM. issue reported by Dorian Buettner <dorian.buettner@gmx.de>
Diffstat (limited to 'usr.sbin/smtpd/lka.c')
-rw-r--r--usr.sbin/smtpd/lka.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index 7b952ab5134..7753ef9326e 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.67 2009/10/12 22:34:37 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.68 2009/10/16 22:26:27 gilles Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -996,6 +996,8 @@ lka_expand_rcpt_iteration(struct smtpd *env, struct aliaseslist *aliases, struct
int
lka_resolve_path(struct smtpd *env, struct path *path){
switch (path->cond->c_type) {
+ case C_ALL:
+ case C_NET:
case C_DOM: {
char username[MAXLOGNAME];
struct passwd *pw;