diff options
author | Raimo Niskanen <[email protected]> | 2013-06-10 11:50:51 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2013-06-10 11:50:51 +0200 |
commit | 429a774fad2696eb719834b627fc0a7322a48a34 (patch) | |
tree | 8207a997353193bbcb1a1fd87ac731771f4e6e6b /lib/kernel/src/inet_res.erl | |
parent | f488b8eafe4186d2bc3cce57a534fdc68ebb186c (diff) | |
parent | 10671126a75d14977a769d9dfce461482093c5c8 (diff) | |
download | otp-429a774fad2696eb719834b627fc0a7322a48a34.tar.gz otp-429a774fad2696eb719834b627fc0a7322a48a34.tar.bz2 otp-429a774fad2696eb719834b627fc0a7322a48a34.zip |
Merge branch 'maint'
Conflicts:
lib/kernel/src/inet_db.erl
Diffstat (limited to 'lib/kernel/src/inet_res.erl')
-rw-r--r-- | lib/kernel/src/inet_res.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/inet_res.erl b/lib/kernel/src/inet_res.erl index ab9cbf0617..6037da1d22 100644 --- a/lib/kernel/src/inet_res.erl +++ b/lib/kernel/src/inet_res.erl @@ -181,8 +181,8 @@ lookup(Name, Class, Type, Opts, Timeout) -> lookup_filter({ok,#dns_rec{anlist=Answers}}, Class, Type) -> [A#dns_rr.data || A <- Answers, - A#dns_rr.class =:= Class, - A#dns_rr.type =:= Type]; + Class =:= any orelse A#dns_rr.class =:= Class, + Type =:= any orelse A#dns_rr.type =:= Type]; lookup_filter({error,_}, _, _) -> []. %% -------------------------------------------------------------------------- |