From f9411ca154e9ce8870b3915536d6aba28ad50ec1 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 11 May 2000 01:12:48 +0000 Subject: [PATCH] Fix another bug... seems to be working... ldap://root.openldap.org/ --- libraries/libldap/dnssrv.c | 4 +++- servers/slapd/back-dnssrv/request.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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, -- 2.39.5