[asterisk-commits] russell: branch 1.6.1 r155515 - in /branches/1.6.1: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 8 15:41:04 CST 2008


Author: russell
Date: Sat Nov  8 15:41:03 2008
New Revision: 155515

URL: http://svn.digium.com/view/asterisk?view=rev&rev=155515
Log:
Merged revisions 155513 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
r155513 | russell | 2008-11-08 15:34:36 -0600 (Sat, 08 Nov 2008) | 3 lines

Remove some code that is basically a no-op.  Code above this already ensures that
the buffer is terminated.

........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/channels/chan_sip.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=155515&r1=155514&r2=155515
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Sat Nov  8 15:41:03 2008
@@ -19271,12 +19271,6 @@
 	if (!(req.data = ast_str_create(SIP_MIN_PACKET)))
 		return 1;
 	ast_str_set(&req.data, 0, "%s", readbuf);
-	if (res == sizeof(req.data) - 1) {
-		ast_debug(1, "Received packet exceeds buffer. Data is possibly lost\n");
-		req.data->str[sizeof(req.data) - 1] = '\0';
- 	} else
-		req.data->str[res] = '\0';
-	req.len = res;
 
 	req.socket.fd 	= sipsock;
 	req.socket.type = SIP_TRANSPORT_UDP;




More information about the asterisk-commits mailing list