]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
poolvendor: fix a NULL pointer reference if more than one vendor class is configured
authorMichael Schroeder <mls@suse.de>
Tue, 22 Feb 2022 17:05:41 +0000 (18:05 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 22 Feb 2022 17:10:02 +0000 (18:10 +0100)
src/poolvendor.c

index adb84d825fed3adcc0f9695dc7a3333b87a42615..01e72f1bf23e00ad7bd6cbf741aeba7a5e2aa6f5 100644 (file)
@@ -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)
        {