From c4902e88d5e87fd8e15b217b78723116e209e6b9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 7 Jan 2002 20:18:38 +0000 Subject: [PATCH] Don't unlock if we've never locked. --- libraries/libldap/dnssrv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.39.5