[asterisk-commits] twilson: trunk r244945 - /trunk/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 5 11:20:29 CST 2010


Author: twilson
Date: Fri Feb  5 11:20:24 2010
New Revision: 244945

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=244945
Log:
Fix crash on 32-bit for users not using https

(closes issue #16778)
Reported by: pitel
Patches: 
      diff.txt uploaded by twilson (license 396)
Tested by: twilson, pitel


Modified:
    trunk/res/res_calendar_caldav.c
    trunk/res/res_calendar_exchange.c
    trunk/res/res_calendar_icalendar.c

Modified: trunk/res/res_calendar_caldav.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_calendar_caldav.c?view=diff&rev=244945&r1=244944&r2=244945
==============================================================================
--- trunk/res/res_calendar_caldav.c (original)
+++ trunk/res/res_calendar_caldav.c Fri Feb  5 11:20:24 2010
@@ -630,7 +630,7 @@
 
 	pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port);
 	ne_set_server_auth(pvt->session, auth_credentials, pvt);
-	if (!strncasecmp(pvt->uri.scheme, "https", sizeof(pvt->uri.scheme))) {
+	if (!strcasecmp(pvt->uri.scheme, "https")) {
 		ne_ssl_trust_default_ca(pvt->session);
 		ne_ssl_set_verify(pvt->session, verify_cert, NULL);
 	}

Modified: trunk/res/res_calendar_exchange.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_calendar_exchange.c?view=diff&rev=244945&r1=244944&r2=244945
==============================================================================
--- trunk/res/res_calendar_exchange.c (original)
+++ trunk/res/res_calendar_exchange.c Fri Feb  5 11:20:24 2010
@@ -694,7 +694,7 @@
 
 	pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port);
 	ne_set_server_auth(pvt->session, auth_credentials, pvt);
-	if (!strncasecmp(pvt->uri.scheme, "https", sizeof(pvt->uri.scheme))) {
+	if (!strcasecmp(pvt->uri.scheme, "https")) {
 		ne_ssl_trust_default_ca(pvt->session);
 	}
 

Modified: trunk/res/res_calendar_icalendar.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_calendar_icalendar.c?view=diff&rev=244945&r1=244944&r2=244945
==============================================================================
--- trunk/res/res_calendar_icalendar.c (original)
+++ trunk/res/res_calendar_icalendar.c Fri Feb  5 11:20:24 2010
@@ -413,7 +413,7 @@
 
 	pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port);
 	ne_set_server_auth(pvt->session, auth_credentials, pvt);
-	if (!strncasecmp(pvt->uri.scheme, "https", sizeof(pvt->uri.scheme))) {
+	if (!strcasecmp(pvt->uri.scheme, "https")) {
 		ne_ssl_trust_default_ca(pvt->session);
 	}
 




More information about the asterisk-commits mailing list