summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/dhcpv4.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-06-03 21:44:10 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-06-03 21:44:10 +0400
commit92aa52c116cdd1a5df42c1437fe9d68b3a1c122b (patch)
tree6b33f8693101d13c5500a9a47a1d7c3dc441b5d1 /accel-pppd/ctrl/ipoe/dhcpv4.c
parentbd30f9451a3f775e7db30a9c405e4db9d4c259b8 (diff)
parent16d7884910de5f30a67351692492cc5a85dd6e3d (diff)
downloadaccel-ppp-92aa52c116cdd1a5df42c1437fe9d68b3a1c122b.tar.gz
accel-ppp-92aa52c116cdd1a5df42c1437fe9d68b3a1c122b.zip
Merge branch 'master' of ssh://git.code.sf.net/p/accel-ppp/code
Diffstat (limited to 'accel-pppd/ctrl/ipoe/dhcpv4.c')
-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 1d3033f..21042b7 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;