[svn-commits] file: branch 12 r422557 - /branches/12/res/res_pjsip_transport_websocket.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Sep 3 09:03:38 CDT 2014
Author: file
Date: Wed Sep 3 09:03:27 2014
New Revision: 422557
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=422557
Log:
res_pjsip_transport_websocket: Fix crash when the Contact header is not a URI.
The code for changing the Contact header wrongly assumed that the Contact
would always contain a URI. This is incorrect.
ASTERISK-24271
Reported by: Dafi Ni
Modified:
branches/12/res/res_pjsip_transport_websocket.c
Modified: branches/12/res/res_pjsip_transport_websocket.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_transport_websocket.c?view=diff&rev=422557&r1=422556&r2=422557
==============================================================================
--- branches/12/res/res_pjsip_transport_websocket.c (original)
+++ branches/12/res/res_pjsip_transport_websocket.c Wed Sep 3 09:03:27 2014
@@ -322,7 +322,7 @@
return PJ_FALSE;
}
- if ((contact = pjsip_msg_find_hdr(rdata->msg_info.msg, PJSIP_H_CONTACT, NULL)) &&
+ if ((contact = pjsip_msg_find_hdr(rdata->msg_info.msg, PJSIP_H_CONTACT, NULL)) && !contact->star &&
(PJSIP_URI_SCHEME_IS_SIP(contact->uri) || PJSIP_URI_SCHEME_IS_SIPS(contact->uri))) {
pjsip_sip_uri *uri = pjsip_uri_get_uri(contact->uri);
More information about the svn-commits
mailing list