udhcpc: fix segmentation fault on empty bin opt
authorMichal Kazior <michal@plume.com>
Wed, 25 Sep 2019 12:03:13 +0000 (14:03 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Oct 2019 13:14:46 +0000 (15:14 +0200)
commit1f1988d5256c9705a4f296ed48cdb7e463525ba4
tree929b37d9ed9f45ea27de2ed4da036d74c5dc7ce6
parent6c1af283f73fb8640cd7273c2bf13eb102f80954
udhcpc: fix segmentation fault on empty bin opt

The following caused udhcpc to segfault:
  busybox udhcpc -i lo -s /dev/null -x 0x3d:

function                                             old     new   delta
udhcp_str2optset                                     629     641     +12

Signed-off-by: Michal Kazior <michal@plume.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/common.c