From: Kurt Zeilenga Date: Thu, 11 May 2000 01:12:48 +0000 (+0000) Subject: Fix another bug... seems to be working... ldap://root.openldap.org/ X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3018 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f9411ca154e9ce8870b3915536d6aba28ad50ec1;p=openldap Fix another bug... seems to be working... ldap://root.openldap.org/ --- diff --git a/libraries/libldap/dnssrv.c b/libraries/libldap/dnssrv.c index 27de0a3d69..ad9d5e05b7 100644 --- a/libraries/libldap/dnssrv.c +++ b/libraries/libldap/dnssrv.c @@ -106,7 +106,9 @@ int ldap_dn2domain( return -5; } - if( domain != NULL ) { + if( domain == NULL ) { + ndomain[0] = '\0'; + } else { strcat( ndomain, "." ); } strcat( ndomain, dc ); diff --git a/servers/slapd/back-dnssrv/request.c b/servers/slapd/back-dnssrv/request.c index 039e03b276..005c6c33a2 100644 --- a/servers/slapd/back-dnssrv/request.c +++ b/servers/slapd/back-dnssrv/request.c @@ -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,