[asterisk-commits] file: branch group/pimp_my_sip r389086 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 18 18:06:31 CDT 2013


Author: file
Date: Sat May 18 18:06:27 2013
New Revision: 389086

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389086
Log:
Fix a crash issue when comparing the transport parameter. pj_str_t strikes again!

Modified:
    team/group/pimp_my_sip/res/res_sip_transport_websocket.c

Modified: team/group/pimp_my_sip/res/res_sip_transport_websocket.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_transport_websocket.c?view=diff&rev=389086&r1=389085&r2=389086
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_transport_websocket.c (original)
+++ team/group/pimp_my_sip/res/res_sip_transport_websocket.c Sat May 18 18:06:27 2013
@@ -276,7 +276,7 @@
 
 	const pjsip_sip_uri *request_uri = pjsip_uri_get_uri(tdata->msg->line.req.uri);
 
-	if (strcasecmp(request_uri->transport_param.ptr, "WS") && strcasecmp(request_uri->transport_param.ptr, "WSS")) {
+	if (pj_stricmp2(&request_uri->transport_param, "WS") && pj_stricmp2(&request_uri->transport_param, "WSS")) {
 		return;
 	}
 




More information about the asterisk-commits mailing list