Skip to content
Snippets Groups Projects
Commit 3ada4465 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed bug with empty domain directive.

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.29
parent a1b309bd
No related branches found
No related tags found
No related merge requests found
...@@ -338,6 +338,7 @@ class client { ...@@ -338,6 +338,7 @@ class client {
} }
if(domain) if(domain)
domains = ({ domain }) + domains; domains = ({ domain }) + domains;
domains -= ({ "" });
domains = Array.map(domains, lambda(string d) { domains = Array.map(domains, lambda(string d) {
if (d[-1] == '.') { if (d[-1] == '.') {
return d[..sizeof(d)-2]; return d[..sizeof(d)-2];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment