Blame SOURCES/0091-RHBZ-1069584-fix-empty-values-fast-io-fail-and-dev-loss.patch

f20720
---
f20720
 libmultipath/dict.c |    9 +++++++++
f20720
 1 file changed, 9 insertions(+)
f20720
f20720
Index: multipath-tools-130222/libmultipath/dict.c
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/libmultipath/dict.c
f20720
+++ multipath-tools-130222/libmultipath/dict.c
f20720
@@ -43,6 +43,9 @@ def_fast_io_fail_handler(vector strvec)
f20720
 	char * buff;
f20720
 
f20720
 	buff = set_value(strvec);
f20720
+	if (!buff)
f20720
+		return 1;
f20720
+
f20720
 	if (strlen(buff) == 3 && !strcmp(buff, "off"))
f20720
 		conf->fast_io_fail = MP_FAST_IO_FAIL_OFF;
f20720
 	else if (sscanf(buff, "%d", &conf->fast_io_fail) != 1 ||
f20720
@@ -1002,6 +1005,9 @@ hw_dev_loss_handler(vector strvec)
f20720
 	char * buff;
f20720
 	struct hwentry * hwe = VECTOR_LAST_SLOT(conf->hwtable);
f20720
 
f20720
+        if (!hwe)
f20720
+                return 1;
f20720
+
f20720
 	buff = set_value(strvec);
f20720
 	if (!buff)
f20720
 		return 1;
f20720
@@ -1021,6 +1027,9 @@ hw_pgpolicy_handler(vector strvec)
f20720
 	char * buff;
f20720
 	struct hwentry * hwe = VECTOR_LAST_SLOT(conf->hwtable);
f20720
 
f20720
+        if (!hwe)
f20720
+                return 1;
f20720
+
f20720
 	buff = set_value(strvec);
f20720
 
f20720
 	if (!buff)