addns: Centralize siteless lookup fallback
authorVolker Lendecke <vl@samba.org>
Fri, 11 Jan 2019 13:18:53 +0000 (14:18 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 15 Jan 2019 06:53:21 +0000 (07:53 +0100)
commita7e28a7eb56dc3279af52a6edd50cc59c771f1f1
tree8285241ff6ff5656a34f7f60bb322b4b9f5d7346
parent12398a2d1ddcd326e02e5d8b0749e0e796145165
addns: Centralize siteless lookup fallback

We had the same logic 3 times, coalesce into one

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/addns/dnsquery.c