← Commit list

ea71c3b6b6

Daniel Stenberg
Daniel Stenberg
2026-06-29
SUCCESS Duration: 195s

Subject

openldap: handle Curl_sasl_continue() returns better

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/openldap.c+13 -2
@@ -791,8 +791,19 @@ static CURLcode oldap_state_sasl_resp(struct Curl_easy *data,
}
else {
result = Curl_sasl_continue(&li->sasl, data, code, &progress);
- if(!result && progress != SASL_INPROGRESS)
- oldap_state(data, li, OLDAP_STOP);
+ if(!result) {
+ switch(progress) {
+ case SASL_DONE:
+ oldap_state(data, li, OLDAP_STOP); /* Authenticated */
+ break;
+ case SASL_IDLE: /* No mechanism left after cancellation */
+ failf(data, "Authentication cancelled");
+ result = CURLE_LOGIN_DENIED;
+ break;
+ default:
+ break;
+ }
+ }
}
if(li->servercred)