]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix crash involving the bogus peer during sip reload. 64/1764/2
authorRichard Mudgett <rmudgett@digium.com>
Fri, 4 Dec 2015 21:36:45 +0000 (15:36 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 7 Dec 2015 16:51:36 +0000 (10:51 -0600)
commit47118fb9473af6f361792c83970cc35be573663b
treea3849512d406f9a3b20037db38f27a39eb18ccac
parent9ca3d542037b6cfb33d51de2bf7928dbd8505bc6
chan_sip: Fix crash involving the bogus peer during sip reload.

A crash happens sometimes when performing a CLI "sip reload".  The bogus
peer gets refreshed while it is in use by a new call which can cause the
crash.

* Protected the global bogus peer object with an ao2 global object
container.

ASTERISK-25610 #close

Change-Id: I5b528c742195681abcf713c6e1011ea65354eeed
channels/chan_sip.c