You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
559 B
20 lines
559 B
--- |
|
libmultipath/prio.c | 5 ++++- |
|
1 file changed, 4 insertions(+), 1 deletion(-) |
|
|
|
Index: multipath-tools-130222/libmultipath/prio.c |
|
=================================================================== |
|
--- multipath-tools-130222.orig/libmultipath/prio.c |
|
+++ multipath-tools-130222/libmultipath/prio.c |
|
@@ -162,7 +162,10 @@ void prio_put (struct prio * dst) |
|
if (!dst) |
|
return; |
|
|
|
- src = prio_lookup(dst->name); |
|
+ if (!strlen(dst->name)) |
|
+ src = NULL; |
|
+ else |
|
+ src = prio_lookup(dst->name); |
|
memset(dst, 0x0, sizeof(struct prio)); |
|
free_prio(src); |
|
}
|
|
|