Remove redundant header getting.

(closes issue #12597)
Reported by: hooi


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Joshua Colp 17 years ago
parent 55310cc855
commit 4555f32184

@ -6171,11 +6171,6 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si
const char *cseq = get_header(req, "Cseq");
struct sip_pvt *sip_pvt_ptr;
callid = get_header(req, "Call-ID");
from = get_header(req, "From");
to = get_header(req, "To");
cseq = get_header(req, "Cseq");
/* Call-ID, to, from and Cseq are required by RFC 3261. (Max-forwards and via too - ignored now) */
/* get_header always returns non-NULL so we must use ast_strlen_zero() */
if (ast_strlen_zero(callid) || ast_strlen_zero(to) ||

Loading…
Cancel
Save