Mercurial > hg > freeDiameter
diff extensions/acl_wl/aw_conf.y @ 926:69d55a534aff
Improve configuration parser of acl_wl extension, to avoid errors sent on stdout/stderr
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sat, 02 Mar 2013 16:21:26 +0100 |
parents | d59decafe9c0 |
children | 5053f1abcf5d |
line wrap: on
line diff
--- a/extensions/acl_wl/aw_conf.y Sat Mar 02 14:03:04 2013 +0100 +++ b/extensions/acl_wl/aw_conf.y Sat Mar 02 16:21:26 2013 +0100 @@ -126,5 +126,10 @@ { fqdn_added++; } + | conffile LEX_ERROR + { + yyerror(&yylloc, conffile, "An error occurred while parsing the configuration file"); + return EINVAL; + } ;