mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Don't unlock if we've never locked.
This commit is contained in:
parent
e5f503c24a
commit
c4902e88d5
@ -210,8 +210,7 @@ int ldap_domain2hostlist(
|
||||
|
||||
request = LDAP_MALLOC(strlen(domain) + sizeof("_ldap._tcp."));
|
||||
if (request == NULL) {
|
||||
rc = LDAP_NO_MEMORY;
|
||||
goto out;
|
||||
return LDAP_NO_MEMORY;
|
||||
}
|
||||
sprintf(request, "_ldap._tcp.%s", domain);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user