rpcd-mod-luci: fix crash on not existing uci options
authorJo-Philipp Wich <jo@mein.io>
Sat, 2 Nov 2019 19:13:00 +0000 (20:13 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 2 Nov 2019 19:14:25 +0000 (20:14 +0100)
commit180f6b78a2c3fc169bc56aeb194eb2fe38900124
tree9f5c48f4faf68faed0ee4df0b5eaf0c6a4b69bf2
parent1b835a50aabfbfe7d8d16a6d15c853315dc7ba79
rpcd-mod-luci: fix crash on not existing uci options

Checking the return value of uci_lookup_ptr() is not enough to ensure that
the requested optiomn has actually been found.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libs/rpcd-mod-luci/src/luci.c