Merge "pbx: Prevent Realtime switch crash on invalid priority" into 16

changes/86/12986/1
George Joseph 7 years ago committed by Gerrit Code Review
commit ac331bff34

@ -2884,6 +2884,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;

Loading…
Cancel
Save