diff options
author | amurai <amurai@FreeBSD.org> | 1995-04-16 12:06:39 +0000 |
---|---|---|
committer | amurai <amurai@FreeBSD.org> | 1995-04-16 12:06:39 +0000 |
commit | 164bafd51bd12abb5df549de79d2ec6d44bcab7a (patch) | |
tree | 3460b7203d72457d015d3251c83bffe6f5c1d87f /usr.sbin/ppp | |
parent | 9f6f5de6df6151368e0572e11f6aae4379b84e6b (diff) | |
download | FreeBSD-src-164bafd51bd12abb5df549de79d2ec6d44bcab7a.zip FreeBSD-src-164bafd51bd12abb5df549de79d2ec6d44bcab7a.tar.gz |
Fix for handling a HDLC's escape characters as properly.
Reviewed by: Atsushi Murai <amurai@spec.co.jp>
Submitted by: NIIMI Satoshi <sa2c@st.rim.or.jp>
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/async.c b/usr.sbin/ppp/async.c index d6777b5..472d723 100644 --- a/usr.sbin/ppp/async.c +++ b/usr.sbin/ppp/async.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id:$ + * $Id: async.c,v 1.2 1995/02/26 12:17:11 amurai Exp $ * */ #include "fsm.h" @@ -78,7 +78,7 @@ int proto; *wp++ = HDLC_ESC; c ^= HDLC_XOR; } - if (EscMap[32] && EscMap[c >> 3] & (c&7)) { + if (EscMap[32] && EscMap[c >> 3] & (1 << (c&7))) { *wp++ = HDLC_ESC; c ^= HDLC_XOR; } |