From b7cc99b55ed048c2371c527172b2735da77899d3 Mon Sep 17 00:00:00 2001 From: Per Hedbor <ph@opera.com> Date: Thu, 4 Dec 1997 05:33:34 +0100 Subject: [PATCH] Fixed a misfeature Rev: lib/modules/Protocols.pmod/DNS.pmod:1.4 --- lib/modules/Protocols.pmod/DNS.pmod | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/modules/Protocols.pmod/DNS.pmod b/lib/modules/Protocols.pmod/DNS.pmod index 42e6f1dcfc..bcab072775 100644 --- a/lib/modules/Protocols.pmod/DNS.pmod +++ b/lib/modules/Protocols.pmod/DNS.pmod @@ -413,7 +413,14 @@ class async_client { callback(domain,0,@args); }else{ - callback(domain,answer->an[0][field],@args); + foreach(answer->an, array an) + if(an[field]) + { + callback(domain,an[field],@args); + return; + } + callback(domain,0,@args); + return; } } -- GitLab