summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou2020-12-24 08:10:17 +0000
committerDaniel Golle2020-12-24 11:07:24 +0000
commit9bbc7eae91edc3dbb020e2a50d51d9a3fbbf31ca (patch)
treef1926422d3080a6edac04cf38cc2e80dc8cccbbd
parentefb26a35e4e5446f135307c4ff7df9e9563c23a9 (diff)
downloadopkg-lede-9bbc7eae91edc3dbb020e2a50d51d9a3fbbf31ca.tar.gz
pkg_hash: pkg_hash_check_unresolved: fix segfault
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--libopkg/pkg_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c
index 879c0ec..dbed3fe 100644
--- a/libopkg/pkg_hash.c
+++ b/libopkg/pkg_hash.c
@@ -263,7 +263,7 @@ pkg_hash_check_unresolved(pkg_t *maybe)
if (unresolved) {
res = 1;
tmp = unresolved;
- while (tmp)
+ while (*tmp)
free(*(tmp++));
free(unresolved);
}