make it compile

This commit is contained in:
Miek Gieben 2012-08-28 13:30:59 +02:00
parent a8737b6741
commit 8bc979fe1e
2 changed files with 4 additions and 2 deletions

View File

@ -111,6 +111,8 @@ func TestPack(t *testing.T) {
t.Fail()
}
}
ns := NewRR("pool.ntp.org. 390 IN NS a.ntpns.org")
t.Log("ns", ns.String())
}
func TestCompressLenght(t *testing.T) {

View File

@ -141,9 +141,9 @@ func (mux *ServeMux) HandleRemove(pattern string) {
func (mux *ServeMux) ServeDNS(w ResponseWriter, request *Msg) {
var h Handler
if len(request.Question) != 1 {
h = FailedHander()
h = FailedHandler()
} else {
if h = mux.match(request.Question[0].Name, request.Question[0].Qtype); h == nil
if h = mux.match(request.Question[0].Name, request.Question[0].Qtype); h == nil {
h = FailedHandler()
}
}