mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
manager: Tolerate stasis messages with no channel snapshot.
In some cases I have yet to determine some stasis messages may
be created without a channel snapshot. This change adds some
tolerance to this scenario, preventing a crash from occurring.
(cherry picked from commit c83c14ba2d
)
This commit is contained in:
committed by
Asterisk Development Team
parent
e14b1d7a3c
commit
b0ec10f9da
@@ -493,7 +493,7 @@ struct ast_str *ast_manager_build_channel_state_string_prefix(
|
|||||||
char *connected_name;
|
char *connected_name;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (snapshot->base->tech_properties & AST_CHAN_TP_INTERNAL) {
|
if (!snapshot || (snapshot->base->tech_properties & AST_CHAN_TP_INTERNAL)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user