mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Fix uninitialized value in struct ast_control_pvt_cause_code usage.
........ Merged revisions 397744 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 397745 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -27987,6 +27987,7 @@ static int handle_incoming(struct sip_pvt *p, struct sip_request *req, struct as
|
||||
/* size of the string making up the cause code is "SIP " + cause length */
|
||||
data_size += 4 + strlen(REQ_OFFSET_TO_STR(req, rlpart2));
|
||||
cause_code = ast_alloca(data_size);
|
||||
memset(cause_code, 0, data_size);
|
||||
|
||||
ast_copy_string(cause_code->chan_name, ast_channel_name(p->owner), AST_CHANNEL_NAME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user