summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-28 18:46:42 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-28 18:46:42 +0400
commit16d7884910de5f30a67351692492cc5a85dd6e3d (patch)
tree4954a0fdf2e72856153cd497d4634345e9cb1ee4 /accel-pppd/ctrl
parent30397cca6a4472f3087d1071ecc43438e39f705f (diff)
downloadaccel-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.c2
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;