getdata: increase max number of shared networks
authorSami Kerola <kerolasa@iki.fi>
Tue, 5 Apr 2011 19:10:46 +0000 (21:10 +0200)
committerSami Kerola <kerolasa@iki.fi>
Tue, 5 Apr 2011 19:10:46 +0000 (21:10 +0200)
commit5cbe8d07fb23db630e76d18022f20368312720ec
tree5c3fae8ee496ea25461a23f5223ed98f87a789ca
parentd75927df39c91108af603fd92dddf2393f87214e
getdata: increase max number of shared networks

Anders & Thor Eivind reported dhcpd-pools to mess console and
crash at the end of execution. Reason was missing boundary check.
The fix this time is more of less just a increase to max numbers.
That will work ot some extent.

The memory allocations has to be made fully dynamic, but that is
a little bit difficult with the way default.h and parse_config
are working. Basically problem is globals gone crazy & re-entrant
issue with parse function. The true fix to the issue will have to
wait for complete redesign of internals of the command.

Reported-by: Anders LĂ„stad <ala@nextgentel.com>
Reported-by: Thor Eivind Brantzeg <tbr@nextgentel.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
src/defaults.h
src/getdata.c