From fcf464d2fab3dbd78cebbc6e3d1ad04cfd2d2b06 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 Oct 2014 07:45:20 +0200 Subject: [PATCH] lib/transaction_sortdeps.c: CID 62717 (NULL pointer dereference) --- lib/transaction_sortdeps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/transaction_sortdeps.c b/lib/transaction_sortdeps.c index f245df26..cb394645 100644 --- a/lib/transaction_sortdeps.c +++ b/lib/transaction_sortdeps.c @@ -345,6 +345,8 @@ xbps_transaction_sort(struct xbps_handle *xhp) pkgdep_entries); } } + if (pd == NULL) + continue; /* * Packages that don't have deps go at head, because * it doesn't matter.