Fix resolving CNAME with no proxy (#564)

This fixes a crash when we resolve (or try to) an external CNAME
when no proxy is set.

Add test as well.
This commit is contained in:
Miek Gieben 2017-03-02 19:35:44 +00:00 committed by GitHub
parent a3f7788686
commit 6966bce653
11 changed files with 67 additions and 9 deletions

View file

@ -35,7 +35,7 @@ func TestLookupDS(t *testing.T) {
t.Parallel()
name, rm, err := TempFile(".", miekNL)
if err != nil {
t.Fatalf("failed to created zone: %s", err)
t.Fatalf("failed to create zone: %s", err)
}
defer rm()