aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-05 17:20:24 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-05 17:20:24 +0000
commit05ec01c46509e5b56f97c81f9ac412f202c3db53 (patch)
tree45751d8ec038b15119472e0c3ce6aa036a02ea68 /res
parent86c24efbe0cba6b62e52db09a30aeb82fcc1147a (diff)
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 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@244945 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_calendar_caldav.c2
-rw-r--r--res/res_calendar_exchange.c2
-rw-r--r--res/res_calendar_icalendar.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/res/res_calendar_caldav.c b/res/res_calendar_caldav.c
index d23f9a65a..c7c8f2f0b 100644
--- a/res/res_calendar_caldav.c
+++ b/res/res_calendar_caldav.c
@@ -630,7 +630,7 @@ static void *caldav_load_calendar(void *void_data)
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);
}
diff --git a/res/res_calendar_exchange.c b/res/res_calendar_exchange.c
index 4722e6e88..8bead3a7e 100644
--- a/res/res_calendar_exchange.c
+++ b/res/res_calendar_exchange.c
@@ -694,7 +694,7 @@ static void *exchangecal_load_calendar(void *void_data)
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);
}
diff --git a/res/res_calendar_icalendar.c b/res/res_calendar_icalendar.c
index 08ef8f519..44febe75b 100644
--- a/res/res_calendar_icalendar.c
+++ b/res/res_calendar_icalendar.c
@@ -413,7 +413,7 @@ static void *ical_load_calendar(void *void_data)
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);
}