← Commit list

c4fe0c7b9f

Jay Satiro
Jay Satiro
2026-07-29
SUCCESS Duration: 187s

Subject

ldap: support empty username and password

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/ldap.c+2 -4
@@ -282,10 +282,8 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
#else
char *host = NULL;
#endif
- const char *user = Curl_creds_has_user(data->state.creds) ?
- data->state.creds->user : NULL;
- const char *passwd = Curl_creds_has_passwd(data->state.creds) ?
- data->state.creds->passwd : NULL;
+ const char *user = data->state.creds ? data->state.creds->user : NULL;
+ const char *passwd = data->state.creds ? data->state.creds->passwd : NULL;
struct ip_quadruple ipquad;
bool is_ipv6;
BerElement *ber = NULL;