]> granicus.if.org Git - pdns/commitdiff
fix zone2ldap in one other place
authorbert hubert <bert.hubert@powerdns.com>
Wed, 7 Sep 2016 19:47:05 +0000 (21:47 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 13 Sep 2016 10:53:30 +0000 (12:53 +0200)
pdns/zone2ldap.cc

index e17d2f2a63ad2c9c5ca77eb1233ef65fb36f3154..c94e444484590e587c5cddfaae46d19e014199da 100644 (file)
@@ -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;
 }