summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-10-18 19:53:50 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-10-18 19:53:50 +0000
commit55b5271e00726abf6dfdc2d2d73c34cc7e411064 (patch)
tree409b935990cee29582d0f09340d955adc87fb6a2 /usr.sbin
parenteba2773a6849471a227d9646c175e73dc43e7948 (diff)
do not attempt to resolve aliases for C_ALL and C_NET destinations
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/lka.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index 7753ef9326e..0148b6086ff 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.68 2009/10/16 22:26:27 gilles Exp $ */
+/* $OpenBSD: lka.c,v 1.69 2009/10/18 19:53:49 gilles Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -996,8 +996,6 @@ 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;
@@ -1029,6 +1027,9 @@ lka_resolve_path(struct smtpd *env, struct path *path){
}
break;
}
+ case C_ALL:
+ case C_NET:
+ return 1;
default:
fatalx("lka_resolve_path: unexpected type");
}