(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
1.6.0
Joshua Colp 18 years ago
parent ab2c114cd7
commit 477e7dcbc7

@ -9549,7 +9549,7 @@ static struct iax2_peer *build_peer(const char *name, struct ast_variable *v, st
if (!ast_strlen_zero(peer->mailbox)) { if (!ast_strlen_zero(peer->mailbox)) {
char *mailbox, *context; char *mailbox, *context;
mailbox = ast_strdupa(peer->mailbox); context = mailbox = ast_strdupa(peer->mailbox);
strsep(&context, "@"); strsep(&context, "@");
if (ast_strlen_zero(context)) if (ast_strlen_zero(context))
context = "default"; context = "default";

Loading…
Cancel
Save