[asterisk-commits] mmichelson: branch mmichelson/issue14220 r169195 - /team/mmichelson/issue1422...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 17 16:27:58 CST 2009


Author: mmichelson
Date: Sat Jan 17 16:27:57 2009
New Revision: 169195

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169195
Log:
Found another spot where REQ_OFFSET could be used.

Tests are still going great. valgrind doesn't complain, either


Modified:
    team/mmichelson/issue14220/channels/chan_sip.c

Modified: team/mmichelson/issue14220/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/team/mmichelson/issue14220/channels/chan_sip.c?view=diff&rev=169195&r1=169194&r2=169195
==============================================================================
--- team/mmichelson/issue14220/channels/chan_sip.c (original)
+++ team/mmichelson/issue14220/channels/chan_sip.c Sat Jan 17 16:27:57 2009
@@ -2756,7 +2756,7 @@
 		}
 
 		/* Read in headers one line at a time */
-		while (req.len < 4 || strncmp((char *)&req.data->str + req.len - 4, "\r\n\r\n", 4)) {
+		while (req.len < 4 || strncmp(REQ_OFFSET(&req, len - 4), "\r\n\r\n", 4)) {
 			ast_mutex_lock(&tcptls_session->lock);
 			if (!fgets(buf, sizeof(buf), tcptls_session->f)) {
 				ast_mutex_unlock(&tcptls_session->lock);




More information about the asterisk-commits mailing list