]> git.sur5r.net Git - openldap/commitdiff
Fix another bug... seems to be working... ldap://root.openldap.org/
authorKurt Zeilenga <kurt@openldap.org>
Thu, 11 May 2000 01:12:48 +0000 (01:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 11 May 2000 01:12:48 +0000 (01:12 +0000)
libraries/libldap/dnssrv.c
servers/slapd/back-dnssrv/request.c

index 27de0a3d69464c94c40faaebe4082addb5e79c40..ad9d5e05b7e3e08c7f3694fa27b1b000409064f2 100644 (file)
@@ -106,7 +106,9 @@ int ldap_dn2domain(
                                        return -5;
                                }
 
-                               if( domain != NULL ) {
+                               if( domain == NULL ) {
+                                       ndomain[0] = '\0';
+                               } else {
                                        strcat( ndomain, "." );
                                }
                                strcat( ndomain, dc );
index 039e03b276c4c4e3f4c33d86d1f10aec2ad3a62b..005c6c33a21386de20942a66b692aa17222434b8 100644 (file)
@@ -76,8 +76,8 @@ dnssrv_back_request(
        }
 
        Statslog( LDAP_DEBUG_STATS,
-           "conn=%ld op=%d DNSSRV dn=\"%s\" domain=%d url=\"%s\"\n",
-           op->o_connid, op->o_opid, dn, domain, urls[0]->bv_val );
+           "conn=%ld op=%d DNSSRV p=%d dn=\"%s\" url=\"%s\"\n",
+           op->o_connid, op->o_opid, op->o_protocol, dn, urls[0]->bv_val );
 
        Debug( LDAP_DEBUG_TRACE, "DNSSRV: dn=\"%s\" -> url=\"%s\"\n",
                dn == NULL ? "" : dn,