Commit f332bba5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

DNSSRV realloc fix

parent 2b73f2bd
......@@ -141,7 +141,8 @@ int ldap_domain2dn(
size_t len = strlen(s);
dntmp = (char *) LDAP_REALLOC(dn, loc + sizeof(",dc=") + len );
if (dn == NULL) {
if (dntmp == NULL) {
if (dn != NULL)
LDAP_FREE(dn);
LDAP_FREE(domain);
return LDAP_NO_MEMORY;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment