From: Kurt Zeilenga Date: Mon, 7 Jan 2002 20:18:38 +0000 (+0000) Subject: Don't unlock if we've never locked. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4902e88d5e87fd8e15b217b78723116e209e6b9;p=openldap Don't unlock if we've never locked. --- diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index 2ae700d418..55184676df 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -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);