From 3560b7d66c3f85816ed4b51d5eca111200b17b6c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 4 Sep 2014 14:20:25 +1000 Subject: [PATCH] move declaration to start of block --- lib/dns/request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dns/request.c b/lib/dns/request.c index be8072c632..2abe4ddb22 100644 --- a/lib/dns/request.c +++ b/lib/dns/request.c @@ -536,8 +536,9 @@ create_tcp_dispatch(dns_requestmgr_t *requestmgr, isc_sockaddr_t *srcaddr, result = dns_dispatch_gettcp(requestmgr->dispatchmgr, destaddr, srcaddr, dispatchp); if (result == ISC_R_SUCCESS) { - *connected = ISC_TRUE; char peer[ISC_SOCKADDR_FORMATSIZE]; + + *connected = ISC_TRUE; isc_sockaddr_format(destaddr, peer, sizeof(peer)); req_log(ISC_LOG_DEBUG(1), "attached to existing TCP " "connection to %s", peer);