]> git.sur5r.net Git - openldap/commitdiff
Don't unlock if we've never locked.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 7 Jan 2002 20:18:38 +0000 (20:18 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 7 Jan 2002 20:18:38 +0000 (20:18 +0000)
libraries/libldap/dnssrv.c

index 2ae700d4183f26dd41a8975b7c4b2fd57d07caff..55184676df3d468756c33c5c3d788abb1d78a986 100644 (file)
@@ -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);