diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-06 01:26:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-02-06 01:26:56 +0000 |
commit | b2073ba0ffc873b669c1f25a2352ad3dfdf13a5c (patch) | |
tree | 1f54d5a4d64a186181362ac7895fed493b66a7cc | |
parent | 658cb687610599ef29539f97cb731c52f2d25619 (diff) |
Move var around
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6513 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/dns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |