netfilter: nf_ct_sip: fix SDP parsing in TCP SIP messages for some Cisco phones
authorPatrick McHardy <kaber@trash.net>
Mon, 16 May 2011 12:45:39 +0000 (14:45 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 00:31:52 +0000 (09:31 +0900)
commit6406426e95eea9ccfcc8b15ac6613c8af438cffe
treed95a7193eac9604d8e8f75d3163d5c32410c06df
parentfa8c3f668b17e2e508d14f44bbf8368b3d7ea92e
netfilter: nf_ct_sip: fix SDP parsing in TCP SIP messages for some Cisco phones

[ Upstream commit e6e4d9ed11fb1fab8b3256a3dc14d71b5e984ac4 ]

Some Cisco phones do not place the Content-Length field at the end of the
SIP message. This is valid, due to a misunderstanding of the specification
the parser expects the SDP body to start directly after the Content-Length
field. Fix the parser to scan for \r\n\r\n to locate the beginning of the
SDP body.

Reported-by: Teresa Kang <teresa_kang@gemtek.com.tw>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/netfilter/nf_conntrack_sip.c