Bug 191 - MAX_INTERFACES handled inconsistently
MAX_INTERFACES handled inconsistently
Product: NSD
Classification: Unclassified
Component: NSD Code
All All
: P2 normal
Assigned To: NSD team
Depends on:
  Show dependency treegraph
Reported: 2008-07-03 21:33 CEST by John Lightsey
Modified: 2008-07-07 11:01 CEST (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description John Lightsey 2008-07-03 21:33:52 CEST
The checks in nsd.c allow MAX_INTERFACES ip addresses to be specified via the -a option or the -a option in combination with the ip-address directive.

The checks in the nsd-checkconf.c additional_checks() function limits the number of ip-address directives to MAX_INTERFACES - 1

line 330:

  if(num >= MAX_INTERFACES) {

should probably be

  if(num > MAX_INTERFACES) {
Comment 1 Matthijs Mekking 2008-07-07 11:01:19 CEST
fixed line 330, so that configuration file can really contain MAX_INTERFACES "ip-address:" lines.

Thanks John!