diff options
author | Phil Sutter <phil@nwl.cc> | 2010-04-11 23:37:37 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-04-12 20:06:21 +0200 |
commit | dcc208d1f0033508a937c50a6caba280c19ecda5 (patch) | |
tree | 05755717827c804116f2f5c2058830e11b84295a /package/pdnsd/patches/patch-src_dns_query_c | |
parent | 9b88e974d36bfb507623cbf5c8ef12d67d378240 (diff) |
fix pdnsd for IPv6 queries
Diffstat (limited to 'package/pdnsd/patches/patch-src_dns_query_c')
-rw-r--r-- | package/pdnsd/patches/patch-src_dns_query_c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/pdnsd/patches/patch-src_dns_query_c b/package/pdnsd/patches/patch-src_dns_query_c new file mode 100644 index 000000000..f16c3d497 --- /dev/null +++ b/package/pdnsd/patches/patch-src_dns_query_c @@ -0,0 +1,12 @@ +use the temporary port, not always the global one over and over again +--- pdnsd-1.2.7.orig/src/dns_query.c 2008-09-01 15:56:51.000000000 +0200 ++++ pdnsd-1.2.7/src/dns_query.c 2010-03-19 21:44:38.837858828 +0100 +@@ -650,7 +650,7 @@ static int bind_socket(int s) + ELSE_IPV6 { + memset(&sin.sin6,0,sizeof(struct sockaddr_in6)); + sin.sin6.sin6_family=AF_INET6; +- sin.sin6.sin6_port=htons(global.port); ++ sin.sin6.sin6_port=htons(prt); + sin.sin6.sin6_flowinfo=IPV6_FLOWINFO; + SET_SOCKA_LEN6(sin.sin6); + sinl=sizeof(struct sockaddr_in6); |