diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-11-08 21:34:36 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-11-08 21:34:36 +0000 |
commit | 648ea2aab953f9026699ccea4a82559cb7c2649e (patch) | |
tree | b17246081eb7342f547229431edf00212be1cd6c | |
parent | 111203aed9c1ce36cd0b76ae0c9abf17666a9f97 (diff) |
Remove some code that is basically a no-op. Code above this already ensures that
the buffer is terminated.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@155513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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 f13a12856..4ef90c7a6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -20136,12 +20136,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; |