summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/aliases.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2018-12-28 12:47:29 +0000
committerEric Faurot <eric@cvs.openbsd.org>2018-12-28 12:47:29 +0000
commitb16e468e402f5fd7819cb19299c50be5e0121a3e (patch)
treed1f728e3957608c5609bcccb6248aa9001ee919e /usr.sbin/smtpd/aliases.c
parent9827ee2adf9c499acb2b66bef2715ba9c041b053 (diff)
zap unused code
Diffstat (limited to 'usr.sbin/smtpd/aliases.c')
-rw-r--r--usr.sbin/smtpd/aliases.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c
index af7b59aa2cf..884f696365f 100644
--- a/usr.sbin/smtpd/aliases.c
+++ b/usr.sbin/smtpd/aliases.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aliases.c,v 1.76 2018/12/28 11:40:29 eric Exp $ */
+/* $OpenBSD: aliases.c,v 1.77 2018/12/28 12:47:28 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -46,11 +46,9 @@ aliases_get(struct expand *expand, const char *username)
union lookup lk;
struct dispatcher *dsp;
struct table *mapping = NULL;
- struct table *userbase = NULL;
char *pbuf;
dsp = dict_xget(env->sc_dispatchers, expand->rule->dispatcher);
- userbase = table_find(env, dsp->u.local.table_userbase);
mapping = table_find(env, dsp->u.local.table_alias);
xlowercase(buf, username, sizeof(buf));
@@ -104,10 +102,8 @@ aliases_virtual_get(struct expand *expand, const struct mailaddr *maddr)
int ret;
struct dispatcher *dsp;
struct table *mapping = NULL;
- struct table *userbase = NULL;
dsp = dict_xget(env->sc_dispatchers, expand->rule->dispatcher);
- userbase = table_find(env, dsp->u.local.table_userbase);
mapping = table_find(env, dsp->u.local.table_virtual);
if (!bsnprintf(user, sizeof(user), "%s", maddr->user))