X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fconfig.c;h=6e36d898a27a58bdae7e29f8e616797ff1eb0ab2;hb=c9d9dbfb8459b528ab56bd1cf0c41460801bbfdf;hp=3bd67fc00d203aa0533a720bbce49197d09a56d9;hpb=4abe4296f0eddbb2b6ff11dbbd27100156c85f87;p=ppp.git diff --git a/pppd/plugins/radius/config.c b/pppd/plugins/radius/config.c index 3bd67fc..6e36d89 100644 --- a/pppd/plugins/radius/config.c +++ b/pppd/plugins/radius/config.c @@ -153,6 +153,7 @@ static int set_option_auo(char *filename, int line, OPTION *option, char *p) *iptr = AUTH_RADIUS_FST; else { error("%s: auth_order: unknown keyword: %s", filename, p); + free(iptr); return (-1); } @@ -165,6 +166,7 @@ static int set_option_auo(char *filename, int line, OPTION *option, char *p) *iptr = (*iptr) | AUTH_RADIUS_SND; else { error("%s: auth_order: unknown or unexpected keyword: %s", filename, p); + free(iptr); return (-1); } } @@ -216,8 +218,8 @@ int rc_read_config(char *filename) p[pos] = '\0'; if ((option = find_option(p, OT_ANY)) == NULL) { - error("%s: line %d: unrecognized keyword: %s", filename, line, p); - return (-1); + warn("%s: line %d: unrecognized keyword: %s", filename, line, p); + continue; } if (option->status != ST_UNDEF) { @@ -272,7 +274,7 @@ char *rc_conf_str(char *optname) if (option == NULL) fatal("rc_conf_str: unkown config option requested: %s", optname); - return (char *)option->val; + return (char *)option->val; } int rc_conf_int(char *optname)