diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-28 18:46:42 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-28 18:46:42 +0400 |
commit | 16d7884910de5f30a67351692492cc5a85dd6e3d (patch) | |
tree | 4954a0fdf2e72856153cd497d4634345e9cb1ee4 /accel-pppd/ctrl | |
parent | 30397cca6a4472f3087d1071ecc43438e39f705f (diff) | |
download | accel-ppp-16d7884910de5f30a67351692492cc5a85dd6e3d.tar.gz accel-ppp-16d7884910de5f30a67351692492cc5a85dd6e3d.zip |
ipoe: dhcp: fixed incorrect parsing empty options
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c index 35fc4688..b4c962cb 100644 --- a/accel-pppd/ctrl/ipoe/dhcpv4.c +++ b/accel-pppd/ctrl/ipoe/dhcpv4.c @@ -183,7 +183,7 @@ struct dhcpv4_serv *dhcpv4_create(struct triton_context_t *ctx, const char *ifna serv->hnd.read = dhcpv4_read; serv->ifindex = ifindex; - if (opt) { + if (opt && *opt) { str0 = _strdup(opt); str = str0; |