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

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