From 19d93e218187e2ea809f9dbc5e3228028e98bf0d Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Mon, 28 Jan 2013 21:49:23 +0100 Subject: [PATCH] Fix it --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 552fbf49..69bd1921 100644 --- a/client.go +++ b/client.go @@ -56,8 +56,8 @@ func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err erro // ExchangeConn performs an synchronous query. It sends the message m trough the // connection s and waits for a reply. func (c *Client) ExchangeConn(m *Msg, s net.Conn) (r *Msg, rtt time.Duration, err error) { - w := &reply{client: c} - if err = w.send(m); err != nil { + w := &reply{client: c, conn: s} + if err = w.send(m); err != nil { return nil, 0, err } r, err = w.receive()