diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-17 08:40:17 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-17 08:40:17 +0000 |
commit | 38fc74f68c90aff4909660b89a9c233eac16f626 (patch) | |
tree | a4548dc2760015c13990def9418b35a966e46ad4 /ncpd/packet.cc | |
parent | bf0e9c7d42c2078e29301123aae3593bab1a029b (diff) | |
download | plptools-38fc74f68c90aff4909660b89a9c233eac16f626.tar.gz plptools-38fc74f68c90aff4909660b89a9c233eac16f626.tar.bz2 plptools-38fc74f68c90aff4909660b89a9c233eac16f626.zip |
- packet: Fixed bug where sync detection could overrun end of buffer
- socketchan: removed debugging output
- link: Changed a debug output of unmatched ack's; removed wrong purge.
Diffstat (limited to 'ncpd/packet.cc')
-rw-r--r-- | ncpd/packet.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ncpd/packet.cc b/ncpd/packet.cc index b08b745..afd82fb 100644 --- a/ncpd/packet.cc +++ b/ncpd/packet.cc @@ -372,9 +372,13 @@ findSync() continue; lastSYN = p - 1; normalize(p); + if (p == inw) + break; if (inBuffer[p++] != 0x10) continue; normalize(p); + if (p == inw) + break; if (inBuffer[p++] != 0x02) continue; normalize(p); |