diff options
author | Guillem Jover <guillem@debian.org> | 2018-05-18 10:13:48 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-08-30 03:14:08 +0200 |
commit | 2d5e9185aa3582ff62f34ec3c66feea4439f9f03 (patch) | |
tree | a04fc9ca5d768eb47167c6bb8fec0ee528729de9 /src/unpack.c | |
parent | 7ab849d1a814b2d2b2e29f9965fb5d51b654265a (diff) | |
download | dpkg-2d5e9185aa3582ff62f34ec3c66feea4439f9f03.tar.gz |
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.
Diffstat (limited to 'src/unpack.c')
-rw-r--r-- | src/unpack.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |