From a1a415111ff071a62ee090169b46ab4c2a767893 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 26 Jun 2022 18:09:22 +0000 Subject: [PATCH] queue: handle pkgconf_pkg_verify_dependency failure while flattening --- libpkgconf/queue.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index 0b3272a..f122311 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -156,6 +156,9 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list) pkgconf_dependency_t *dep = node->data; pkgconf_pkg_t *pkg = pkgconf_pkg_verify_dependency(client, dep, NULL); + if (pkg == NULL) + continue; + if (pkg->serial == client->serial) continue;