summaryrefslogtreecommitdiffstats
path: root/0071-RHBZ-611779-fix-whitespace-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to '0071-RHBZ-611779-fix-whitespace-crash.patch')
-rw-r--r--0071-RHBZ-611779-fix-whitespace-crash.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/0071-RHBZ-611779-fix-whitespace-crash.patch b/0071-RHBZ-611779-fix-whitespace-crash.patch
new file mode 100644
index 0000000..3c6374a
--- /dev/null
+++ b/0071-RHBZ-611779-fix-whitespace-crash.patch
@@ -0,0 +1,20 @@
+---
+ multipathd/cli.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+Index: multipath-tools/multipathd/cli.c
+===================================================================
+--- multipath-tools.orig/multipathd/cli.c
++++ multipath-tools/multipathd/cli.c
+@@ -228,8 +228,10 @@ get_cmdvec (char * cmd, vector *v)
+ vector cmdvec, strvec;
+
+ strvec = alloc_strvec(cmd);
+- if (!strvec)
++ if (!strvec) {
++ *v = NULL;
+ return 0;
++ }
+
+ cmdvec = vector_alloc();
+ *v = cmdvec;