mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
Merge pull request #48509 from jliebl-git/jliebl-ldap-fix
rgw: LDAP fix resource leak with wrong credentials Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
commit
6d88d66e90
@ -83,10 +83,8 @@ namespace rgw {
|
||||
(void*) &ldap_ver);
|
||||
if (ret == LDAP_SUCCESS) {
|
||||
ret = ldap_simple_bind_s(tldap, dn, pwd.c_str());
|
||||
if (ret == LDAP_SUCCESS) {
|
||||
(void) ldap_unbind(tldap);
|
||||
}
|
||||
}
|
||||
(void) ldap_unbind(tldap);
|
||||
}
|
||||
return ret; // OpenLDAP client error space
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user