Index: /trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- /trunk/src/target/opkg/libopkg/opkg.c	(revision 4406)
+++ /trunk/src/target/opkg/libopkg/opkg.c	(revision 4407)
@@ -296,5 +296,5 @@
 opkg_set_option (opkg_t *opkg, char *option, void *value)
 {
-  int i = 0;
+  int i = 0, found = 0;
   opkg_option_t *options;
 
@@ -312,7 +312,14 @@
     if (strcmp (options[i].name, option) == 0)
     {
+      found = 1;
       break;
     }
     i++;
+  }
+
+  if (!found)
+  {
+    /* XXX: Warning: Option not found */
+    return;
   }
 
