ad09c2a75a
- Add a comment to mark bundled recursor as deprecated (by the author). [2] - s/INSTALLS_SHLIB/USE_LDCONFIG/ to satisfy portlint. PR: 105490 [1], 105491 [2] Submitted by: Sten Spans<sten@blinkenlights.nl> [1], [2] Approved by: maintainer [1], [2]
15 lines
552 B
C++
15 lines
552 B
C++
--- pdns/tcpreceiver.cc.orig Sun Nov 19 16:11:25 2006
|
|
+++ pdns/tcpreceiver.cc Sun Nov 19 16:13:27 2006
|
|
@@ -480,10 +480,9 @@
|
|
throw AhuException("Unable to acquire TCPv6 socket: "+stringerror());
|
|
|
|
sockaddr_in6 locala;
|
|
- locala.sin6_port=ntohs(arg().asNum("local-port"));
|
|
+ memset(&locala, 0, sizeof(locala));
|
|
+ locala.sin6_port=htons(arg().asNum("local-port"));
|
|
locala.sin6_family=AF_INET6;
|
|
- locala.sin6_flowinfo=0;
|
|
-
|
|
|
|
if(!inet_pton(AF_INET6, laddr->c_str(), (void *)&locala.sin6_addr)) {
|
|
addrinfo *addrinfos;
|