diff options
author | Jeff Peeler <jpeeler@digium.com> | 2009-02-20 00:35:53 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2009-02-20 00:35:53 +0000 |
commit | 138f3de410db02377d9635d362c124058c232bd6 (patch) | |
tree | f603ae30d2257c0774ea48e6225561bd1461b30d /channels | |
parent | b5a8a85d355ea65df066728686f639b6d22a4889 (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: https://origsvn.digium.com/svn/asterisk/trunk@177624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 1 |
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"); |