Merge conflict fixed

This commit is contained in:
Miek Gieben 2012-08-31 15:10:43 +02:00
parent 4a4292c1b9
commit 7a0877d090
2 changed files with 2 additions and 5 deletions

View File

@ -66,6 +66,7 @@ func (c *Client) exchangeBuffer(inbuf []byte, a string, outbuf []byte) (n int, w
w = new(reply)
w.client = c
w.addr = a
// attempts useful for dialing?
if err = w.dial(); err != nil {
return 0, w, err
}

View File

@ -48,11 +48,7 @@ type conn struct {
type response struct {
conn *conn
<<<<<<< HEAD
=======
hijacked bool // connection has been hijacked by handler
req *Msg
>>>>>>> axfr
tsigStatus error
tsigTimersOnly bool
tsigRequestMAC string
@ -341,7 +337,7 @@ func (c *conn) serve() {
w.tsigRequestMAC = req.Extra[len(req.Extra)-1].(*RR_TSIG).MAC
}
c.handler.ServeDNS(w, req) // this does the writing back to the client
if c.hijacked {
if w.hijacked {
// client takes care of the connection, i.e. calls Close()
return
}