From 2d5e9185aa3582ff62f34ec3c66feea4439f9f03 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 18 May 2018 10:13:48 +0200 Subject: dpkg: Call ensure_package_clientdata() defensively We want to stop calling this function from the fsys loading code, so we should make very sure it is being called before we access the clientdata members, otherwise we'll just segfault. --- src/unpack.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/unpack.c') diff --git a/src/unpack.c b/src/unpack.c index 0ab4175e2..970871a3a 100644 --- a/src/unpack.c +++ b/src/unpack.c @@ -207,6 +207,7 @@ pkg_check_depcon(struct pkginfo *pkg, const char *pfilename) /* Check if anything is installed that we conflict with, or not installed * that we need. */ + ensure_package_clientdata(pkg); pkg->clientdata->istobe = PKG_ISTOBE_INSTALLNEW; for (dsearch = pkg->available.depends; dsearch; dsearch = dsearch->next) { -- cgit v1.2.3