[asterisk-bugs] [JIRA] (ASTERISK-21693) Use of unitalized value in channel.c
Mark Murawski (JIRA)
noreply at issues.asterisk.org
Thu Apr 25 14:18:40 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-21693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Murawski updated ASTERISK-21693:
-------------------------------------
Description:
{noformat}
Use of possibly uninitialized value in ast_channel_hangupcause_hash_set
Fix:
===================================================================
--- channels/chan_sip.c (revision 386542)
+++ channels/chan_sip.c (working copy)
@@ -28011,6 +28011,9 @@
if (global_store_sip_cause) {
cause_code->emulate_sip_cause = 1;
}
+ else {
+ cause_code->emulate_sip_cause = 0;
+ }
ast_queue_control_data(p->owner, AST_CONTROL_PVT_CAUSE_CODE, cause_code, data_size);
ast_channel_hangupcause_hash_set(p->owner, cause_code, data_size);
{noformat}
was:
Use of possibly uninitialized value in ast_channel_hangupcause_hash_set
Fix:
===================================================================
--- channels/chan_sip.c (revision 386542)
+++ channels/chan_sip.c (working copy)
@@ -28011,6 +28011,9 @@
if (global_store_sip_cause) {
cause_code->emulate_sip_cause = 1;
}
+ else {
+ cause_code->emulate_sip_cause = 0;
+ }
ast_queue_control_data(p->owner, AST_CONTROL_PVT_CAUSE_CODE, cause_code, data_size);
ast_channel_hangupcause_hash_set(p->owner, cause_code, data_size);
> Use of unitalized value in channel.c
> ------------------------------------
>
> Key: ASTERISK-21693
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-21693
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_sip/General
> Affects Versions: 11.3.0
> Reporter: Mark Murawski
> Severity: Trivial
>
> {noformat}
> Use of possibly uninitialized value in ast_channel_hangupcause_hash_set
> Fix:
> ===================================================================
> --- channels/chan_sip.c (revision 386542)
> +++ channels/chan_sip.c (working copy)
> @@ -28011,6 +28011,9 @@
> if (global_store_sip_cause) {
> cause_code->emulate_sip_cause = 1;
> }
> + else {
> + cause_code->emulate_sip_cause = 0;
> + }
> ast_queue_control_data(p->owner, AST_CONTROL_PVT_CAUSE_CODE, cause_code, data_size);
> ast_channel_hangupcause_hash_set(p->owner, cause_code, data_size);
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list