mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
(closes issue #10495)
Reported by: stevedavies Make sure context pointer is valid or else chan_iax2 will go kaboom. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -9549,7 +9549,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st
|
||||
|
||||
if (!ast_strlen_zero(peer->mailbox)) {
|
||||
char *mailbox, *context;
|
||||
mailbox = ast_strdupa(peer->mailbox);
|
||||
context = mailbox = ast_strdupa(peer->mailbox);
|
||||
strsep(&context, "@");
|
||||
if (ast_strlen_zero(context))
|
||||
context = "default";
|
||||
|
||||
Reference in New Issue
Block a user