X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/898975ee8b892cadd04322dc884b3bb8d491c8f8..1cd39ec493bf6a24379095b5e8894dd5039767f0:/server/tun-slip.c diff --git a/server/tun-slip.c b/server/tun-slip.c index e807662a..c945998d 100644 --- a/server/tun-slip.c +++ b/server/tun-slip.c @@ -121,9 +121,10 @@ static void t_read(int fd, unsigned mode, void *v) case SL_END: if (st & ST_BAD) ; - else if (st & ST_ESC) + else if (st & ST_ESC) { a_warn("TUN", "%s", p_ifname(t->p), "slip", "escape-end", A_END); - else if (q == t->buf) { + st |= ST_BAD; + } else if (q == t->buf) { T( trace(T_TUNNEL, "tun-slip: empty packet"); ) } else { IF_TRACING(T_TUNNEL, {