From: Joshua Colp Date: Sat, 6 Sep 2014 19:11:25 +0000 (+0000) Subject: res_pjsip_sdp_rtp: Fix retrieval of "ice-pwd" attribute if in session and not media... X-Git-Tag: 12.6.0-rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c020015c6e58a1d027162ea339ef6256aed4402;p=thirdparty%2Fasterisk.git res_pjsip_sdp_rtp: Fix retrieval of "ice-pwd" attribute if in session and not media stream. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@422746 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip_sdp_rtp.c b/res/res_pjsip_sdp_rtp.c index b7e1eef3dd..3d57679355 100644 --- a/res/res_pjsip_sdp_rtp.c +++ b/res/res_pjsip_sdp_rtp.c @@ -403,7 +403,7 @@ static void process_ice_attributes(struct ast_sip_session *session, struct ast_s attr = pjmedia_sdp_media_find_attr2(remote_stream, "ice-pwd", NULL); if (!attr) { - pjmedia_sdp_attr_find2(remote->attr_count, remote->attr, "ice-pwd", NULL); + attr = pjmedia_sdp_attr_find2(remote->attr_count, remote->attr, "ice-pwd", NULL); } if (attr) { ast_copy_pj_str(attr_value, (pj_str_t*)&attr->value, sizeof(attr_value));