aboutsummaryrefslogtreecommitdiffstats
path: root/package/opkg/patches/011-fix_nullpointer_deref.patch
blob: 1eecfd3ff0a2229e4d24887dd3d924b95bd536d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/libopkg/opkg_cmd.c
+++ b/libopkg/opkg_cmd.c
@@ -878,7 +878,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;
                }