summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2013-10-28 18:50:23 +0000
committereric <eric@openbsd.org>2013-10-28 18:50:23 +0000
commit3f95a974098291c5efe8b153ac2e846d51a3a194 (patch)
tree38c7e0c714842ace0256ce9bba2a13e7bdf0287e
parentaccept credentials formated as "<user> <passwd>" (diff)
downloadwireguard-openbsd-3f95a974098291c5efe8b153ac2e846d51a3a194.tar.xz
wireguard-openbsd-3f95a974098291c5efe8b153ac2e846d51a3a194.zip
alias files may be empty
-rw-r--r--usr.sbin/smtpd/table_static.c6
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);