提交 b0d66211 编写于 作者: D Dmitry Kozlov

ipoe: fixed sigsegv when interface is without additional options

上级 6c796b10
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册