summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2014-03-08 19:02:06 -0300
committershennetsind <shennetsind@users.noreply.github.com>2014-03-08 19:02:06 -0300
commit3dfbf251f59d3df5c87356ca6b561e60184ced72 (patch)
treec4046083f65c97058790b7bc164bd90d4fd4a306
parent60fcda1dc90a071a04438335461178983748ba20 (diff)
parent7dd4dafae93c8560cb3e2dd78b9806f36f3ee0ca (diff)
downloadhercules-3dfbf251f59d3df5c87356ca6b561e60184ced72.tar.gz
hercules-3dfbf251f59d3df5c87356ca6b561e60184ced72.tar.bz2
hercules-3dfbf251f59d3df5c87356ca6b561e60184ced72.tar.xz
hercules-3dfbf251f59d3df5c87356ca6b561e60184ced72.zip
Merge pull request #261 from Baalberith6/master
wrong HPM parsing of packets of variable length, when the size is not equal declared size.
-rwxr-xr-x[-rw-r--r--]src/common/HPM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index bd2ce93ab..a25a17782 100644..100755
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -512,7 +512,7 @@ unsigned char hplugins_parse_packets(int fd, enum HPluginPacketHookingPoints poi
short length;
if( (length = packet->len) == -1 ) {
- if( (length = RFIFOW(fd, 2)) < (int)RFIFOREST(fd) )
+ if( (length = RFIFOW(fd, 2)) > (int)RFIFOREST(fd) )
return 2;
}