summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-10-23 20:01:14 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-10-23 20:01:14 +0000
commit6345c91eb3fe28a47d1b7d1e941858f05b8ac626 (patch)
tree6956e941a003b2f3b57ebd2e888b69236f993bf8
parenta31aa6f320e9451c33f2299e910ead78ef71b0bd (diff)
remove a useless check for ocseq = 0.
As discussed on the mailing lists, 0 is a legal value for Cseq, so there is no point to treat it specially. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46035 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 66299c5ba..549e73f1e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14421,11 +14421,11 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
a request and have a response, or at least get a response
within an existing dialog */
/* Response to our request -- Do some sanity checks */
- if (p->ocseq && (p->ocseq < seqno)) {
+ if (p->ocseq < seqno) {
if (option_debug)
ast_log(LOG_DEBUG, "Ignoring out of order response %d (expecting %d)\n", seqno, p->ocseq);
return -1;
- } else if (p->ocseq && (p->ocseq != seqno)) {
+ } else if (p->ocseq != seqno) {
/* ignore means "don't do anything with it" but still have to
respond appropriately */
ast_set_flag(req, SIP_PKT_IGNORE);