[svn-commits] oej: branch oej/darjeeling-prack-1.8 r369468 - /team/oej/darjeeling-prack-1.8...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 28 11:57:45 CDT 2012


Author: oej
Date: Thu Jun 28 11:57:43 2012
New Revision: 369468

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369468
Log:
Make sure we always have a proper cseq (bug in existing Asterisk code fixed)

Modified:
    team/oej/darjeeling-prack-1.8/channels/chan_sip.c

Modified: team/oej/darjeeling-prack-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/darjeeling-prack-1.8/channels/chan_sip.c?view=diff&rev=369468&r1=369467&r2=369468
==============================================================================
--- team/oej/darjeeling-prack-1.8/channels/chan_sip.c (original)
+++ team/oej/darjeeling-prack-1.8/channels/chan_sip.c Thu Jun 28 11:57:43 2012
@@ -10532,8 +10532,10 @@
 {
 	struct sip_request resp;
 	uint32_t seqno = 0;
-
-	if (reliable && (sscanf(get_header(req, "CSeq"), "%30u ", &seqno) != 1)) {
+	int res;
+
+	res = sscanf(get_header(req, "CSeq"), "%30u ", &seqno);
+	if (reliable && res != 1) {
 		ast_log(LOG_WARNING, "Unable to determine sequence number from '%s'\n", get_header(req, "CSeq"));
 		return -1;
 	}




More information about the svn-commits mailing list