]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx: Prevent Realtime switch crash on invalid priority
authorSean Bright <sean.bright@gmail.com>
Wed, 25 Sep 2019 16:01:33 +0000 (12:01 -0400)
committerSean Bright <sean.bright@gmail.com>
Wed, 25 Sep 2019 16:08:37 +0000 (12:08 -0400)
commit7280e2ec51509aa571f66e7573c078481f091719
treec668e8b18022b6e2d51320493edc6c126b3e394f
parentfde6ed7d91164540c13313601ce324690207d52b
pbx: Prevent Realtime switch crash on invalid priority

pbx_extension_helper takes two 'context' arguments. One (con) is a
pointer directly to a 'struct ast_context' and the other (context) is
the name of the context. In all cases, one of these arguments is NULL
and the other is non-NULL.

Functions that are ultimately called by pbx_extension_helper expect that
'context' will be non-NULL, so we set it unconditionally on entry into
this function.

ASTERISK-28534 #close

Change-Id: Ifbbc5e71440afd80efd441f7a9d72e8b10b6f47d
main/pbx.c