summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-07-12 19:37:21 (EDT)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-07-12 19:37:21 (EDT)
commitd8753f35f12f07b795ba06b8a237842727726f63 (patch)
tree9ba22a23f5386e3b167e2eec88d99f0cd525d22f
parent9709cebaa23d60afa0a59d0a3e4713103d907bef (diff)
Fix infinite loop in list_upgradable in libopkg.
From Sebastian Krzyszkowiak. git-svn-id: http://opkg.googlecode.com/svn/trunk@543 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c
index 705156a..be38d4f 100644
--- a/libopkg/opkg.c
+++ b/libopkg/opkg.c
@@ -760,7 +760,7 @@ opkg_list_upgradable_packages(opkg_package_callback_t callback, void *user_data)
head = prepare_upgrade_list();
for (node = active_list_next(head, head); node;
- active_list_next(head, node)) {
+ node = active_list_next(head, node)) {
old = list_entry(node, pkg_t, list);
new = pkg_hash_fetch_best_installation_candidate_by_name(old->name);
if (new == NULL)