diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-12-12 22:23:20 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-12-12 22:23:20 +0400 |
commit | 86f648a7b90fccde400aab7a3e63a0bfbcabf2e0 (patch) | |
tree | 3aac396ff969199b735f84126a41971bcf9f77f8 /accel-pppd/ctrl/ipoe | |
parent | bc536e14dc0334340d69e486ff1574b1d86fe3b8 (diff) | |
download | accel-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')
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.c | 5 |
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) { |