diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2013-01-28 15:14:03 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2013-01-28 15:14:03 +0000 |
commit | d93f7acbba8f260b90d7ca0deebf4521c5699cd7 (patch) | |
tree | d17b4b406f5025df017b1bdfc7ecb676bfac8090 | |
parent | 8a6b4ec33f6c5bd0015d3ad2cf67b0eba1324a55 (diff) |
allow lookups from backends in "accept for [...] virtual" context
-rw-r--r-- | usr.sbin/smtpd/parse.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 02842b6e46d..fe97986fdcb 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.111 2013/01/26 09:37:23 gilles Exp $ */ +/* $OpenBSD: parse.y,v 1.112 2013/01/28 15:14:02 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -898,7 +898,8 @@ rule : ACCEPT { type = T_HASH; break; } - if (! table_check_type(rule->r_mapping, type)) { + if (! table_check_service(rule->r_mapping, K_ALIAS) && + ! table_check_type(rule->r_mapping, type)) { yyerror("invalid use of table \"%s\" as VIRTUAL parameter", rule->r_mapping->t_name); YYERROR; |