summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-09-09 11:10:41 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-09-09 11:10:41 +0400
commitb0d66211d8e700549f2a477d4499568a99eff331 (patch)
tree93550a48d421cf35f916e1023923e03950680ee7 /accel-pppd/ctrl/ipoe
parent6c796b10ba8093828eccf5a29d13cb348a5f52a7 (diff)
downloadaccel-ppp-b0d66211d8e700549f2a477d4499568a99eff331.tar.gz
accel-ppp-b0d66211d8e700549f2a477d4499568a99eff331.zip
ipoe: fixed sigsegv when interface is without additional options
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-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 fa48636..d3f0010 100644
--- a/accel-pppd/ctrl/ipoe/dhcpv4.c
+++ b/accel-pppd/ctrl/ipoe/dhcpv4.c
@@ -177,7 +177,7 @@ struct dhcpv4_serv *dhcpv4_create(struct triton_context_t *ctx, const char *ifna
serv->hnd.read = dhcpv4_read;
serv->raw_sock = raw_sock;
- str0 = strchr(opt, ',');
+ str0 = opt ? strchr(opt, ',') : NULL;
if (str0) {
str0 = _strdup(str0 + 1);
str = str0;