diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-04-17 14:29:36 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-04-17 14:29:36 +0300 |
commit | eb3b85388944b4e15b6db2db99d136f538384c4e (patch) | |
tree | 64a7fa8cc1d27059bf411198259939745e4bf34a /accel-pppd/ctrl/pppoe/pppoe.c | |
parent | b80e64a320b22c0e966ec1e42bda4929d5a748ec (diff) | |
download | accel-ppp-eb3b85388944b4e15b6db2db99d136f538384c4e.tar.gz accel-ppp-eb3b85388944b4e15b6db2db99d136f538384c4e.zip |
preparation for DPDK intergation (part 7)
Diffstat (limited to 'accel-pppd/ctrl/pppoe/pppoe.c')
-rw-r--r-- | accel-pppd/ctrl/pppoe/pppoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c index 8a216baa..242f7e07 100644 --- a/accel-pppd/ctrl/pppoe/pppoe.c +++ b/accel-pppd/ctrl/pppoe/pppoe.c @@ -427,7 +427,7 @@ static void connect_channel(struct pppoe_conn_t *conn) triton_event_fire(EV_CTRL_STARTED, &conn->ppp.ses); sock = net->socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OE); - if (!sock) { + if (sock < 0) { log_error("pppoe: socket(PPPOX): %s\n", strerror(errno)); goto out_err; } |