1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-01 14:14:58 +02:00
openwrt-xburst/package/opkg/patches/011-fix_nullpointer_deref.patch

12 lines
404 B
Diff
Raw Normal View History

--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -954,7 +954,7 @@
pkg_to_remove = pkg_hash_fetch_installed_by_name(&conf->pkg_hash, pkg->name );
}
- if (pkg == NULL) {
+ if (pkg_to_remove == NULL) {
opkg_message(conf, OPKG_ERROR, "Package %s is not installed.\n", pkg->name);
continue;
}