[asterisk-dev] SVN trunk chan_iax2.so segfault

Stephen Davies stephen.l.davies at gmail.com
Sun Aug 19 14:56:59 CDT 2007


Trivial error in chan_iax2.so results in a segfault as peers are built in load.

See http://bugs.digium.com/view.php?id=10495

Patch is:

Index: channels/chan_iax2.c
===================================================================
--- channels/chan_iax2.c        (revision 79987)
+++ channels/chan_iax2.c        (working copy)
@@ -9549,7 +9630,7 @@

        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";

Offsets might be a bit off due to other stuff in my chan_iax2.c

Steve



More information about the asterisk-dev mailing list