From: Martin Wilck <mwilck@xxxxxxxx> Reviewed-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx> Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- libmultipath/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/config.c b/libmultipath/config.c index b9bdbdb..df0f8f4 100644 --- a/libmultipath/config.c +++ b/libmultipath/config.c @@ -147,7 +147,7 @@ struct mpentry *find_mpe(vector mptable, char *wwid) int i; struct mpentry * mpe; - if (!wwid) + if (!wwid || !*wwid) return NULL; vector_foreach_slot (mptable, mpe, i) -- 2.28.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel