Fix realm comparison for outbound auth
authorKinsey Moore <kmoore@digium.com>
Sat, 12 Oct 2013 16:53:06 +0000 (16:53 +0000)
committerKinsey Moore <kmoore@digium.com>
Sat, 12 Oct 2013 16:53:06 +0000 (16:53 +0000)
commit1a0a2b3e4c43c28c720812f162da811a68d630d2
treea4ccdc5d1c96410c389ce7dd9a74172e8f7475c7
parent224f44c97169fba9e19ea1fed7fa6da8cfe22e9a
Fix realm comparison for outbound auth

When generating the list of authentication credentials to pass to
PJSIP, Asterisk was using the raw pointer of a pj_str_t which is not
always NULL-terminated. This sometimes resulted in incorrect text for
the realm and a failure to match the realm for authentication purposes
which was causing the outbound nominal auth pjsip basic call test to
bounce. This now uses the pj_str_t that contains the realm instead of
generating a new one. Thanks to John Bigelow for helping to narrow this
down.
........

Merged revisions 400863 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_outbound_authenticator_digest.c