diff --git a/labels.go b/labels.go index 758e5783..399bfdce 100644 --- a/labels.go +++ b/labels.go @@ -98,7 +98,6 @@ func CountLabel(s string) (labels int) { return } } - panic("dns: not reached") } // Split splits a name s into its label indexes. @@ -119,7 +118,6 @@ func Split(s string) []int { } idx = append(idx, off) } - panic("dns: not reached") } // NextLabel returns the index of the start of the next label in the diff --git a/server.go b/server.go index 0556bfaf..362c6a72 100644 --- a/server.go +++ b/server.go @@ -456,7 +456,6 @@ func (srv *Server) serveTCP(l *net.TCPListener) error { srv.wgTCP.Add(1) go srv.serve(rw.RemoteAddr(), handler, m, nil, nil, rw) } - panic("dns: not reached") } // serveUDP starts a UDP listener for the server. @@ -492,7 +491,6 @@ func (srv *Server) serveUDP(l *net.UDPConn) error { srv.wgUDP.Add(1) go srv.serve(s.RemoteAddr(), handler, m, l, s, nil) } - panic("dns: not reached") } // Serve a new connection. diff --git a/xfr.go b/xfr.go index c098925d..2da75931 100644 --- a/xfr.go +++ b/xfr.go @@ -91,7 +91,6 @@ func (t *Transfer) inAxfr(id uint16, c chan *Envelope) { c <- &Envelope{in.Answer, nil} } } - panic("dns: not reached") } func (t *Transfer) inIxfr(id uint16, c chan *Envelope) {