opkg: - re-enable upgrade and restrict it to signle packages, fix usage text - only...
[openwrt/openwrt.git] / package / opkg / patches / 011-fix_nullpointer_deref.patch
1 --- a/libopkg/opkg_cmd.c
2 +++ b/libopkg/opkg_cmd.c
3 @@ -954,7 +954,7 @@
4 pkg_to_remove = pkg_hash_fetch_installed_by_name(&conf->pkg_hash, pkg->name );
5 }
6
7 - if (pkg == NULL) {
8 + if (pkg_to_remove == NULL) {
9 opkg_message(conf, OPKG_ERROR, "Package %s is not installed.\n", pkg->name);
10 continue;
11 }