1
0

patch-src_dns_query_c 568 B

123456789101112
  1. use the temporary port, not always the global one over and over again
  2. --- pdnsd-1.2.7.orig/src/dns_query.c 2008-09-01 15:56:51.000000000 +0200
  3. +++ pdnsd-1.2.7/src/dns_query.c 2010-03-19 21:44:38.837858828 +0100
  4. @@ -650,7 +650,7 @@ static int bind_socket(int s)
  5. ELSE_IPV6 {
  6. memset(&sin.sin6,0,sizeof(struct sockaddr_in6));
  7. sin.sin6.sin6_family=AF_INET6;
  8. - sin.sin6.sin6_port=htons(global.port);
  9. + sin.sin6.sin6_port=htons(prt);
  10. sin.sin6.sin6_flowinfo=IPV6_FLOWINFO;
  11. SET_SOCKA_LEN6(sin.sin6);
  12. sinl=sizeof(struct sockaddr_in6);