summaryrefslogtreecommitdiffstats
path: root/package/opkg/patches/011-fix_nullpointer_deref.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/opkg/patches/011-fix_nullpointer_deref.patch')
-rw-r--r--package/opkg/patches/011-fix_nullpointer_deref.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/opkg/patches/011-fix_nullpointer_deref.patch b/package/opkg/patches/011-fix_nullpointer_deref.patch
new file mode 100644
index 000000000..1eecfd3ff
--- /dev/null
+++ b/package/opkg/patches/011-fix_nullpointer_deref.patch
@@ -0,0 +1,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;
+ }