[asterisk-commits] russell: trunk r155513 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Nov 8 15:34:37 CST 2008
Author: russell
Date: Sat Nov 8 15:34:36 2008
New Revision: 155513
URL: http://svn.digium.com/view/asterisk?view=rev&rev=155513
Log:
Remove some code that is basically a no-op. Code above this already ensures that
the buffer is terminated.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=155513&r1=155512&r2=155513
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Nov 8 15:34:36 2008
@@ -20136,12 +20136,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