X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=list.c;h=15f544e0b7aa7f7ff5cfb079a6de80ff5f3c8f7d;hp=e817118472f06db1ef3476b88d93ba3ab8f18881;hb=a428a41ac99c2673409fc15dbbe6a4c8d897c7b6;hpb=cba72526bbd55932caf58bcb673b8fa8b1b98c89 diff --git a/list.c b/list.c index e817118..15f544e 100644 --- a/list.c +++ b/list.c @@ -218,6 +218,8 @@ int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_pac if (option) { s = uci_to_section(e); e = uci_lookup_list(ctx, &s->options, option); + if (!e) + goto notfound; } *res = e;