diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-08 21:41:03 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-08 21:41:03 +0000 |
commit | fb96e4e89fc31a72b859674b778fba5624690594 (patch) | |
tree | f48276dc8ba57abf1ba990f8810a16c963c9cfc0 /channels | |
parent | de6c3e4000758e30b5ba0e7044fec357bc4281dd (diff) |
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.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@155515 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3c922907d..44b9fb2f2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -19271,12 +19271,6 @@ static int sipsock_read(int *id, int fd, short events, void *ignore) 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; |