CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/11/25 05:49:56
Modified files:
sbin/dhclient : clparse.c dhclient.c dhcpd.h
Log message:
Clean up parsing of option lists. Part 1.
1) Add config->required_options_count so that syntactically incorrect
request statement in dhclient.conf is completely ignored.
2) Pass size of buffer being filled instead of assuming 256.
3) Always zero (a.k.a. DHO_PAD) the passed in buffer.
4) Check for out of bounds index before using it, not after.
Add TOK_IGNORE to syntax in comment.
No intentional functional change other than catching bad request
statements.