mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Merge "pbx: Prevent Realtime switch crash on invalid priority" into 13
This commit is contained in:
@@ -2844,6 +2844,11 @@ static int pbx_extension_helper(struct ast_channel *c, struct ast_context *con,
|
||||
int matching_action = (action == E_MATCH || action == E_CANMATCH || action == E_MATCHMORE);
|
||||
|
||||
ast_rdlock_contexts();
|
||||
|
||||
if (!context) {
|
||||
context = con->name;
|
||||
}
|
||||
|
||||
if (found)
|
||||
*found = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user