diff options
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); |