]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Used auth= parameter freed during "sip reload" causes crash.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 5 Jul 2011 17:22:59 +0000 (17:22 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 5 Jul 2011 17:22:59 +0000 (17:22 +0000)
commit48e78804e289a102b533aca27c0637210d6d9735
tree8c0c4cd5a8f243b3d243016fb1c7999efeff5007
parent46289ce3a01fe68c0d80d6eddcacd73f10d9f5fe
Used auth= parameter freed during "sip reload" causes crash.

If you use the auth= parameter and do a "sip reload" while there is an
ongoing call.  The peer->auth data points to free'd memory.

The patch does several things:

1) Puts the authentication list into an ao2 object for reference counting
to fix the reported crash during a SIP reload.

2) Converts the authentication list from open coding to AST list macros.

3) Adds display of the global authentication list in "sip show settings".

(closes issue ASTERISK-17939)
Reported by: wdoekes
Patches:
      jira_asterisk_17939_v1.8.patch (license #5621) patch uploaded by rmudgett

Review: https://reviewboard.asterisk.org/r/1303/

JIRA SWP-3526

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@326291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
channels/sip/include/sip.h