Check vector_foreach_slot for NULL argument
authorHannes Reinecke <hare@suse.de>
Mon, 24 Nov 2008 07:31:28 +0000 (08:31 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 21 Apr 2009 22:48:12 +0000 (00:48 +0200)
commit5dc885f2b4172dacda6245fddcc1fc9a0591cc25
tree70c2c84de5fbea56fa5407dfdb2adee094022b01
parented5f5a7a49e1efb452255ff114a27ec5169fa6a2
Check vector_foreach_slot for NULL argument

Most crashes are due to vector_foreach_slot not checking for NULL
argument. Do that now, and add some more checks for not accessing
a NULL pointer indirection.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/configure.c
libmultipath/structs_vec.c
libmultipath/vector.h