diff --git a/libmultipath/dmparser.c b/libmultipath/dmparser.c index 83760e30a..df78a1f74 100644 --- a/libmultipath/dmparser.c +++ b/libmultipath/dmparser.c @@ -307,6 +307,8 @@ int disassemble_map(const struct vector_s *pathvec, for (k = 0; k < num_paths_args; k++) if (k == 0) { p += get_word(p, &word); + if (!word); + goto out1; def_minio = atoi(word); free(word);