]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix crash in AMI PJSIPShowEndpoint action.
authorMark Michelson <mmichelson@digium.com>
Thu, 13 Feb 2014 15:45:52 +0000 (15:45 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 13 Feb 2014 15:45:52 +0000 (15:45 +0000)
commit39f87c16a99b8dc736a3662b42d57c3d0a33cdc8
treee7aa3629d7031d2badab06a676a0d6879b5018ee
parenta36b55313f0d79752ba2890105b7e1dc58b36464
Fix crash in AMI PJSIPShowEndpoint action.

If an AOR has no permanent contacts, then the
permanent_contacts container is never allocated.
This makes the code safe in the face of NULLs.

I also changed the variable that counts contacts
from "num" to "total_contacts" since there are now
two variables that are indicate numbers of things.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@407988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip/location.c