summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 3b8c3ede5..a608c783e 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3556,7 +3556,7 @@ static enum sip_result __sip_reliable_xmit(struct sip_pvt *p, int seqno, int res
}
}
- if (!(pkt = ast_calloc(1, sizeof(*pkt) + len + 1))) {
+ if (!(pkt = ast_calloc(1, sizeof(*pkt)))) {
return AST_FAILURE;
}
/* copy data, add a terminator and save length */