aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-20 00:35:53 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2009-02-20 00:35:53 +0000
commita288ad41516e150f45cfae043df44d666b637eff (patch)
treef603ae30d2257c0774ea48e6225561bd1461b30d /channels
parent904ff8985a1b2363051f0b35230966f256b23d32 (diff)
Set sip_request ast_str data to NULL so ast_str_copy allocates space properly
in copy_request (issue #14478) Reported by: erik_dedecker git-svn-id: http://svn.digium.com/svn/asterisk/trunk@177624 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 9864ea2fb..1cf7eb871 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -19497,6 +19497,7 @@ static int handle_request_refer(struct sip_pvt *p, struct sip_request *req, int
/* Chan2: Call between asterisk and transferee */
int res = 0;
+ current.req.data = NULL;
if (req->debug)
ast_verbose("Call %s got a SIP call transfer from %s: (REFER)!\n", p->callid, ast_test_flag(&p->flags[0], SIP_OUTGOING) ? "callee" : "caller");