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

Fixed bug with empty domain directive.

Backpatched from 0.6:1.29.

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.30
parent f702ba29
No related branches found
No related tags found
No related merge requests found
......@@ -341,6 +341,7 @@ class client {
}
if(domain)
domains = ({ domain }) + domains;
domains -= ({ "" });
domains = Array.map(domains, lambda(string d) {
if (d[-1] == '.') {
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