openldap: do not pass newline to infof()

Discovered by ZeroPath
Closes #19120
This commit is contained in:
Joshua Rogers 2025-10-19 00:47:11 +08:00 committed by Daniel Stenberg
parent c567b37548
commit 023e453032
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -746,7 +746,7 @@ static CURLcode oldap_state_mechs_resp(struct Curl_easy *data,
case LDAP_RES_SEARCH_RESULT:
switch(code) {
case LDAP_SIZELIMIT_EXCEEDED:
infof(data, "Too many authentication mechanisms\n");
infof(data, "Too many authentication mechanisms");
FALLTHROUGH();
case LDAP_SUCCESS:
case LDAP_NO_RESULTS_RETURNED: