]> git.pld-linux.org Git - packages/centericq.git/blame - centericq-icq-short-read.patch
- pain and hacks, but builds now
[packages/centericq.git] / centericq-icq-short-read.patch
CommitLineData
44c2573f
ER
1--- centericq-4.21.0.orig/libicq2000-0.1/src/DirectClient.cpp
2+++ centericq-4.21.0/libicq2000-0.1/src/DirectClient.cpp
3@@ -162,6 +162,7 @@
4
5 m_recv.setLittleEndian();
6 m_recv >> length;
7+ if (length == 0) return; // short read, toss it back (nothing to do)
8 if (length > Incoming_Packet_Limit) throw ParseException("Received too long incoming packet");
9 if (m_recv.remains() < length) return; // waiting for more of the packet
10
This page took 0.073472 seconds and 4 git commands to generate.