summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/dhcpv4.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-12-12 22:23:20 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-12-12 22:23:20 +0400
commit86f648a7b90fccde400aab7a3e63a0bfbcabf2e0 (patch)
tree3aac396ff969199b735f84126a41971bcf9f77f8 /accel-pppd/ctrl/ipoe/dhcpv4.c
parentbc536e14dc0334340d69e486ff1574b1d86fe3b8 (diff)
downloadaccel-ppp-86f648a7b90fccde400aab7a3e63a0bfbcabf2e0.tar.gz
accel-ppp-86f648a7b90fccde400aab7a3e63a0bfbcabf2e0.zip
ipoe: fixed parsing 'range' option
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/ctrl/ipoe/dhcpv4.c')
-rw-r--r--accel-pppd/ctrl/ipoe/dhcpv4.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c
index 12ba95c..c603c5f 100644
--- a/accel-pppd/ctrl/ipoe/dhcpv4.c
+++ b/accel-pppd/ctrl/ipoe/dhcpv4.c
@@ -183,9 +183,8 @@ struct dhcpv4_serv *dhcpv4_create(struct triton_context_t *ctx, const char *ifna
serv->hnd.read = dhcpv4_read;
serv->ifindex = ifindex;
- str0 = opt ? strchr(opt, ',') : NULL;
- if (str0) {
- str0 = _strdup(str0 + 1);
+ if (opt) {
+ str0 = _strdup(opt);
str = str0;
while (1) {