mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
parent
1ea99afdc7
commit
61dcb56743
1 changed files with 4 additions and 0 deletions
|
|
@ -468,6 +468,10 @@ static CURLcode oldap_perform_mechs(struct Curl_easy *data)
|
|||
|
||||
if(!li)
|
||||
return CURLE_FAILED_INIT;
|
||||
/* Casting away the const for the 3rd parameter that the LDAP API expects as
|
||||
a non-const char ** is potentially unsafe but we believe the lack of
|
||||
const in the API was an oversight and that no LDAP implementation
|
||||
actually modifies the input. */
|
||||
rc = ldap_search_ext(li->ld, "", LDAP_SCOPE_BASE, "(objectclass=*)",
|
||||
(char **)CURL_UNCONST(supportedSASLMechanisms), 0,
|
||||
NULL, NULL, NULL, 0, &li->msgid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue