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

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