From: bert hubert Date: Wed, 7 Sep 2016 19:47:05 +0000 (+0200) Subject: fix zone2ldap in one other place X-Git-Tag: dnsdist-1.1.0-beta2~123^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b20b746fb2711726172217214b98f1a22ec5460;p=thirdparty%2Fpdns.git fix zone2ldap in one other place --- diff --git a/pdns/zone2ldap.cc b/pdns/zone2ldap.cc index e17d2f2a63..c94e444484 100644 --- a/pdns/zone2ldap.cc +++ b/pdns/zone2ldap.cc @@ -136,8 +136,8 @@ static void callback_tree( unsigned int domain_id, const DNSName &domain, const cout << "changetype: modify" << endl; cout << "add: " << qtype << "Record" << endl; } - - cout << qtype << "Record: " << stripDot( content ) << endl << endl; + string stripped=stripDot(content); + cout << qtype << "Record: " << stripped << ((stripped.empty() || stripped[stripped.size()-1]==' ') ? "." : "") << endl << endl; }