From: Michael Schroeder Date: Tue, 22 Feb 2022 17:05:41 +0000 (+0100) Subject: poolvendor: fix a NULL pointer reference if more than one vendor class is configured X-Git-Tag: 0.7.21~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e843e7710b19873e052a89f088d9569c4f6bf3c5;p=thirdparty%2Flibsolv.git poolvendor: fix a NULL pointer reference if more than one vendor class is configured --- diff --git a/src/poolvendor.c b/src/poolvendor.c index adb84d82..01e72f1b 100644 --- a/src/poolvendor.c +++ b/src/poolvendor.c @@ -64,6 +64,7 @@ Id pool_vendor2mask(Pool *pool, Id vendor) if (m == (1 << 31)) break; /* sorry, out of bits */ m <<= 1; /* next vendor equivalence class */ + continue; } if (fnmatch(*vs == '!' ? vs + 1 : vs, vstr, FNM_CASEFOLD) == 0) {