Blame SOURCES/0029-RH-no-prio-put-msg.patch

4728c8
---
4728c8
 libmultipath/prio.c |    5 ++++-
4728c8
 1 file changed, 4 insertions(+), 1 deletion(-)
4728c8
4728c8
Index: multipath-tools-130222/libmultipath/prio.c
4728c8
===================================================================
4728c8
--- multipath-tools-130222.orig/libmultipath/prio.c
4728c8
+++ multipath-tools-130222/libmultipath/prio.c
4728c8
@@ -162,7 +162,10 @@ void prio_put (struct prio * dst)
4728c8
 	if (!dst)
4728c8
 		return;
4728c8
 
4728c8
-	src = prio_lookup(dst->name);
4728c8
+	if (!strlen(dst->name))
4728c8
+		src = NULL;
4728c8
+	else
4728c8
+		src = prio_lookup(dst->name);
4728c8
 	memset(dst, 0x0, sizeof(struct prio));
4728c8
 	free_prio(src);
4728c8
 }