From b2073ba0ffc873b669c1f25a2352ad3dfdf13a5c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Feb 2007 01:26:56 +0000 Subject: Move var around git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6513 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns.cpp b/src/dns.cpp index 4cf913f3e..a3e1a8b17 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -620,7 +620,6 @@ DNSResult DNS::GetResult() #else socklen_t x = sizeof(sockaddr_in); #endif - char nbuf[MAXBUF]; const char* ipaddr_from; unsigned short int port_from = 0; @@ -646,6 +645,7 @@ DNSResult DNS::GetResult() * -- Thanks jilles for pointing this one out. */ #ifdef IPV6 + char nbuf[MAXBUF]; if (this->socketfamily == AF_INET6) { ipaddr_from = inet_ntop(AF_INET6, &((sockaddr_in6*)from)->sin6_addr, nbuf, sizeof(nbuf)); -- cgit v1.2.3