From 16d7884910de5f30a67351692492cc5a85dd6e3d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 28 May 2014 18:46:42 +0400 Subject: ipoe: dhcp: fixed incorrect parsing empty options --- accel-pppd/ctrl/ipoe/dhcpv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/ctrl/ipoe/dhcpv4.c') 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; -- cgit v1.2.3