make sure that makeDNSName parses "." correctly as root
This commit is contained in:
parent
b2c9d5ea94
commit
022b1b2347
@ -34,6 +34,9 @@ DNSName operator+(const DNSName& a, const DNSName& b)
|
||||
DNSName makeDNSName(const std::string& str)
|
||||
{
|
||||
DNSName ret;
|
||||
if(str==".")
|
||||
return ret;
|
||||
|
||||
string part;
|
||||
for(const auto& c: str) {
|
||||
if(c=='.') {
|
||||
|
Loading…
Reference in New Issue
Block a user