[asterisk-dev] Fwd: SVN trunk chan_iax2.so segfault

Stephen Davies stephen.l.davies at gmail.com
Mon Aug 20 01:30:40 CDT 2007


---------- Forwarded message ----------
From: Stephen Davies <stephen.l.davies at gmail.com>
Date: 19-Aug-2007 21:56
Subject: SVN trunk chan_iax2.so segfault
To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com>


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