From 0ad4ffe33f0799856cb729a86288945723ce155d Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 21 Aug 2014 19:02:29 -0400 Subject: [PATCH] Fix error in EQRawApplicationPacket::EQRawApplicationPacket() --- common/EQPacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/EQPacket.cpp b/common/EQPacket.cpp index 5372a0f9d..36e8c83af 100644 --- a/common/EQPacket.cpp +++ b/common/EQPacket.cpp @@ -476,7 +476,7 @@ EQRawApplicationPacket::EQRawApplicationPacket(const unsigned char *buf, const u const unsigned char *packet_start = (buf + 3); const int32 packet_length = len - 3; safe_delete_array(pBuffer); - if(len >= 0) + if(packet_length >= 0) { size = packet_length; pBuffer = new unsigned char[size];