modprobe: Fix segfault in parse_config_file
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:44:18 +0000 (11:44 +0000)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:44:18 +0000 (11:44 +0000)
commit55424c0d7e0412ffa243c57b6e78c4672309c8fc
tree2554f43b9957a9fdd06460927f889d3694a30ccb
parentaf7949a945899b4751910e63d622c77a23068817
modprobe: Fix segfault in parse_config_file

$ echo "config" > modprobe.conf
$ gdb --args ./modprobe -C modprobe.conf ipip

Program received signal SIGSEGV, Segmentation fault.
parse_config_file (filename=0xbffc96a6 "modprobe.conf",
    name=0xbffc96b4 "ipip", dump_only=0, removing=0,
    options=0xbffc8c14, commands=0xbffc8c18, aliases=0xbffc8c10,
    blacklist=0xbffc8c0c) at modprobe.c:1284
1284                            if (strcmp(tmp, "binary_indexes") == 0) {

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
modprobe.c