summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_sip.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 1690a6ade..7db4d243a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -8085,10 +8085,6 @@ static int add_line(struct sip_request *req, const char *line)
if (!req->lines)
/* Add extra empty return */
req->len += ast_str_append(&req->data, 0, "\r\n");
- if (req->len >= sizeof(req->data->str) - 4) {
- ast_log(LOG_WARNING, "Out of space, can't add anymore\n");
- return -1;
- }
req->line[req->lines] = req->data->str + req->len;
ast_str_append(&req->data, 0, "%s", line);
req->len += strlen(req->line[req->lines]);