]> git.openfabrics.org - ~shefty/libibverbs.git/commit
read_config_file: ignore driver line without driver name
authorYann Droneaud <ydroneaud@opteya.com>
Tue, 31 May 2011 18:20:39 +0000 (11:20 -0700)
committerRoland Dreier <roland@purestorage.com>
Tue, 31 May 2011 18:20:39 +0000 (11:20 -0700)
commit93b7c800abb413d86dbca4e9a4e196ee7f1823b2
tree4f945d6692ae8c5384a3abfd5699cd051b40a5a5
parent5b0baf05195696eeebc3ef70f7c9218166d33f3b
read_config_file: ignore driver line without driver name

If there's no driver name, strsep() will set config to NULL and later
processing of the driver name will segfault.

Spotted with zzuf.

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
src/init.c