diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2014-03-08 19:02:06 -0300 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2014-03-08 19:02:06 -0300 |
commit | 3dfbf251f59d3df5c87356ca6b561e60184ced72 (patch) | |
tree | c4046083f65c97058790b7bc164bd90d4fd4a306 /src | |
parent | 60fcda1dc90a071a04438335461178983748ba20 (diff) | |
parent | 7dd4dafae93c8560cb3e2dd78b9806f36f3ee0ca (diff) | |
download | hercules-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.
Diffstat (limited to 'src')
-rwxr-xr-x[-rw-r--r--] | src/common/HPM.c | 2 |
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; } |