From 3c816b0c8692410243402678fbc105ff7b5c7d48 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 23 Mar 2015 15:38:50 -0500 Subject: [PATCH] Emberassing mistake (dont look) --- src/stub.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stub.c b/src/stub.c index 903e15b7..bb4277e9 100644 --- a/src/stub.c +++ b/src/stub.c @@ -788,9 +788,10 @@ stub_tcp_write(int fd, getdns_tcp_state *tcp, getdns_network_req *netreq) /* Still more to send */ return STUB_TCP_AGAIN; + query_id = (int)GLDNS_ID_WIRE(tcp->write_buf + 2); /* Done. Start reading */ tcp->write_buf = NULL; - return (int)GLDNS_ID_WIRE(tcp->write_buf + 2); + return query_id; } /* if (! tcp->write_buf) */ }