summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-07-09 13:38:06 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-07-09 13:38:06 +0300
commit1380198e91cad0442ea9f0cf708ffd6a8a5fcacb (patch)
treeeb9435d801ce94c4e4aa94ad9dcf44bd2dee5910 /accel-pppd/ppp/ppp.c
parent2de5323e832b0eaa3aaea748f60d4d481f0e3e87 (diff)
downloadaccel-ppp-1380198e91cad0442ea9f0cf708ffd6a8a5fcacb.tar.gz
accel-ppp-1380198e91cad0442ea9f0cf708ffd6a8a5fcacb.zip
ppp: ignore zero read on chan fd
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r--accel-pppd/ppp/ppp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index 1ba83fa3..264ae136 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -370,6 +370,9 @@ cont:
break;
}
+ if (ppp->buf_size == 0)
+ break;
+
if (ppp->buf_size < 2) {
log_ppp_error("ppp_chan_read: short read %i\n", ppp->buf_size);
continue;