Browse code

changed c<'9' to c<='9' in cseq parsing.

Raphael Coeffic authored on 27/05/2003 10:27:29
Showing 1 changed files
... ...
@@ -398,8 +398,9 @@ static inline int fifo_check_msg(struct sip_msg* msg, str* method, char* resp, s
398 398
 		*cseq_is = 1;
399 399
 		for (i = 0; i < parsed_cseq->number.len; i++) {
400 400
 			c = parsed_cseq->number.s[i];
401
-			if (c >= '0' && c < '9' ) *cseq = (*cseq) * 10 + c - '0';
401
+			if (c >= '0' && c <= '9' ) *cseq = (*cseq) * 10 + c - '0';
402 402
 			else {
403
+			        DBG("found non-numerical in CSeq: <%i>='%c'\n",(unsigned int)c,c);
403 404
 				fifo_uac_error(resp, 400, "non-nummerical CSeq");
404 405
 				return -6;
405 406
 			}