Bug 191

Summary: MAX_INTERFACES handled inconsistently
Product: NSD Reporter: John Lightsey <jd>
Component: NSD CodeAssignee: NSD team <nsd-team>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.0.x   
Hardware: All   
OS: All   

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!