summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2011-04-21 00:29:21 +0000
committerTerry Wilson <twilson@digium.com>2011-04-21 00:29:21 +0000
commitb8f253161b0bc60953fdd5a82b495dd0ddbf61a3 (patch)
treec47a7e522577a8958b8a6f14d8041b36d02fb8da /channels
parent18d591cb48730b8eeff0daa5946fbc6684285088 (diff)
Merged revisions 314550 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r314550 | twilson | 2011-04-20 17:23:04 -0700 (Wed, 20 Apr 2011) | 13 lines Merged revisions 314549 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r314549 | twilson | 2011-04-20 17:17:34 -0700 (Wed, 20 Apr 2011) | 6 lines Don't allocate more space than necessary for a sip_pkt This extra allocation is a hold-over from when pkt->data was a character array. Now that it is an allocated string, just allocate enough for the sip_pkt. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@314551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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 */