netfilter: nf_ct_h323: Out Of Bound Read in Netfilter Conntrack

Add missing counter decrement to prevent out of bounds memory read.

Signed-off-by: Eric Sesterhenn <eric.sesterhenn@x41-dsec.de>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Eric Sesterhenn 2017-10-09 07:01:14 +02:00 committed by Pablo Neira Ayuso
parent ce49480dba
commit e8daf27c2f

View file

@ -877,6 +877,7 @@ int DecodeQ931(unsigned char *buf, size_t sz, Q931 *q931)
if (sz < 1) if (sz < 1)
break; break;
len = *p++; len = *p++;
sz--;
if (sz < len) if (sz < len)
break; break;
p += len; p += len;