diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3b8c3ede53dc990c1d8587ae24d4877e17996f38..a608c783e0db219a25c7a69eb1db19d9c2a5b890 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 */