Navigation


Changeset 926:69d55a534aff in freeDiameter for extensions/acl_wl


Ignore:
Timestamp:
Mar 3, 2013, 12:21:26 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Improve configuration parser of acl_wl extension, to avoid errors sent on stdout/stderr

Location:
extensions/acl_wl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/acl_wl/aw_conf.l

    r741 r926  
    9393                        }
    9494
     95        /* No match */
     96<*>[[:alnum:]]+         |       /* This rule is only useful to print a complete token in error messages */
     97<*>.                    {
     98                                TRACE_DEBUG_ERROR("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
     99                                return LEX_ERROR;
     100                        }
     101
    95102%%
  • extensions/acl_wl/aw_conf.y

    r741 r926  
    127127                                fqdn_added++;
    128128                        }
     129                        | conffile LEX_ERROR
     130                        {
     131                                yyerror(&yylloc, conffile, "An error occurred while parsing the configuration file");
     132                                return EINVAL;
     133                        }
    129134                        ;
    130135
Note: See TracChangeset for help on using the changeset viewer.