1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/net-im/centericq/files/patch-libicq2000-0.1_src_DirectClient.cpp
Cheng-Lung Sung e9479c379a - Respect CXXFLAGS
- Fix some annoying memory leekage bugs that tends to core dumps.

PR:		ports/101688
Submitted by:	Stanislav Sedov <ssedov_AT_mbsd dot msk dot ru>
2006-08-10 10:28:03 +00:00

12 lines
434 B
C++

--- libicq2000-0.1/src/DirectClient.cpp.orig Wed Aug 9 10:52:04 2006
+++ libicq2000-0.1/src/DirectClient.cpp Wed Aug 9 10:53:26 2006
@@ -162,6 +162,8 @@
m_recv.setLittleEndian();
m_recv >> length;
+ if (length == 0)
+ return;
if (length > Incoming_Packet_Limit) throw ParseException("Received too long incoming packet");
if (m_recv.remains() < length) return; // waiting for more of the packet