]> git.sur5r.net Git - openldap/commitdiff
Preset error just in case
authorKurt Zeilenga <kurt@openldap.org>
Mon, 29 May 2000 19:47:48 +0000 (19:47 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 29 May 2000 19:47:48 +0000 (19:47 +0000)
libraries/libldap/dnssrv.c

index 243e16aa68ad0a858b2cfddd898873556d5acb57..94875c00ed3a69cd8c1af53a650284778d165727 100644 (file)
@@ -217,6 +217,7 @@ int ldap_domain2hostlist(
     ldap_pvt_thread_mutex_lock(&ldap_int_resolv_mutex);
 #endif
 
+    rc = LDAP_UNAVAILABLE;
     len = res_search(request, C_IN, T_SRV, reply, sizeof(reply));
     if (len >= 0) {
        unsigned char *p;