diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-10-28 18:50:24 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-10-28 18:50:24 +0000 |
commit | 8c83264e1973d9127e42760c093c6856c73f4342 (patch) | |
tree | 1353a297c6c7399ad252b3bc0c1190c08d321c98 /usr.sbin | |
parent | 417f9237bfe835e7a3348dc4eac708248d36422e (diff) |
alias files may be empty
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/table_static.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/table_static.c b/usr.sbin/smtpd/table_static.c index 9fe1ceae9f9..7450bece52d 100644 --- a/usr.sbin/smtpd/table_static.c +++ b/usr.sbin/smtpd/table_static.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table_static.c,v 1.5 2013/05/24 17:03:14 eric Exp $ */ +/* $OpenBSD: table_static.c,v 1.6 2013/10/28 18:50:23 eric Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -135,6 +135,10 @@ table_static_parse(struct table *t, const char *config, enum table_type type) else goto end; } + /* Accept empty alias files; treat them as hashes */ + if (t->t_type == T_NONE && t->t_backend->services & K_ALIAS) + t->t_type = T_HASH; + ret = 1; end: free(lbuf); |