]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack_sip: CSeq 0 is a valid CSeq
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 3 Aug 2016 10:41:40 +0000 (12:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Aug 2016 09:58:43 +0000 (11:58 +0200)
commitabd428cb8804f3654b5f4e5fc7c5c7cefa9cac97
tree99bffa0fa77acfd0a8215617897350a233f7f3a8
parentb6433fb3cfd21009c2e5525de130cb31faf56012
netfilter: nf_conntrack_sip: CSeq 0 is a valid CSeq

Do not drop packet when CSeq is 0 as 0 is also a valid value for CSeq.

simple_strtoul() will return 0 either when all digits are 0
or if there are no digits at all. Therefore when simple_strtoul()
returns 0 we check if first character is digit 0 or not.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_sip.c