mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@244945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user