Skip to content

Commit

Permalink
Fixed bug where named-stanza was not being found when it indeed existed.
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/mbr/svn/fwknop/trunk@237 510a4753-2344-4c79-9c09-4d669213fbeb
  • Loading branch information
Damien Stuart committed Jul 6, 2010
1 parent d7fc21d commit 7308180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/config_init.c
Expand Up @@ -485,8 +485,7 @@ process_rc(fko_cli_options_t *options)
* first, then if a named-stanza is specified, we process its
* entries as well.
*/
if(strcasecmp(curr_stanza, "default") == 0 || (options->use_rc_stanza[0] != '\0'
&& strncasecmp(curr_stanza, options->use_rc_stanza, MAX_LINE_LEN)==0))
if(strcasecmp(curr_stanza, "default") == 0)
{
if(parse_rc_param(options, var, val) < 0)
fprintf(stderr, "Parameter error in %s, line %i: var=%s, val=%i\n",
Expand All @@ -497,7 +496,8 @@ process_rc(fko_cli_options_t *options)
{
options->got_named_stanza = 1;
if(parse_rc_param(options, var, val) < 0)
fprintf(stderr, "Parameter error in %s, stanza: %s, line %i: var=%s, val=%i\n",
fprintf(stderr,
"Parameter error in %s, stanza: %s, line %i: var=%s, val=%i\n",
rcfile, curr_stanza, line_num, var, val);
}

Expand Down

0 comments on commit 7308180

Please sign in to comment.