mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:43:33 +03:00
parent
d3b04e5600
commit
bcd0497c81
19 changed files with 41 additions and 80 deletions
|
|
@ -238,10 +238,8 @@ CURLcode Curl_vtls_apple_verify(struct Curl_cfilter *cf,
|
|||
err_desc = curlx_malloc(size + 1);
|
||||
if(err_desc) {
|
||||
if(!CFStringGetCString(error_ref, err_desc, size,
|
||||
kCFStringEncodingUTF8)) {
|
||||
curlx_free(err_desc);
|
||||
err_desc = NULL;
|
||||
}
|
||||
kCFStringEncodingUTF8))
|
||||
curlx_safefree(err_desc);
|
||||
}
|
||||
}
|
||||
infof(data, "Apple SecTrust failure %ld%s%s", code,
|
||||
|
|
|
|||
|
|
@ -632,8 +632,7 @@ void Curl_ssl_free_certinfo(struct Curl_easy *data)
|
|||
ci->certinfo[i] = NULL;
|
||||
}
|
||||
|
||||
curlx_free(ci->certinfo); /* free the actual array too */
|
||||
ci->certinfo = NULL;
|
||||
curlx_safefree(ci->certinfo); /* free the actual array too */
|
||||
ci->num_of_certs = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue