From d93f7acbba8f260b90d7ca0deebf4521c5699cd7 Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Mon, 28 Jan 2013 15:14:03 +0000 Subject: allow lookups from backends in "accept for [...] virtual" context --- usr.sbin/smtpd/parse.y | 5 +++-- 1 file 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 @@ -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; -- cgit v1.2.3