From f4dc2bd01ab149ee32999df8c9f7ccae607ac176 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 16:07:42 +0000 Subject: Apply patch 0052-libmultipath-check-for-null-wwid-before-strcmp.patch patch_name: 0052-libmultipath-check-for-null-wwid-before-strcmp.patch present_in_specfile: true location_in_specfile: 52 --- diff --git a/libmultipath/config.c b/libmultipath/config.c index dc81c99..dd645f1 100644 --- a/libmultipath/config.c +++ b/libmultipath/config.c @@ -453,7 +453,7 @@ void merge_mptable(vector mptable) } j = i + 1; vector_foreach_slot_after(mptable, mp2, j) { - if (strcmp(mp1->wwid, mp2->wwid)) + if (!mp2->wwid || strcmp(mp1->wwid, mp2->wwid)) continue; condlog(1, "%s: duplicate multipath config section for %s", __func__, mp1->wwid);