diff options
author | demon <demon@FreeBSD.org> | 2015-09-14 20:45:26 +0800 |
---|---|---|
committer | demon <demon@FreeBSD.org> | 2015-09-14 20:45:26 +0800 |
commit | 77eab819b155e194f87c5330c842b4d851abea91 (patch) | |
tree | 05847be0332fa2f4e0c3fabbf7c83fee389cd5c8 /net | |
parent | bc98a96fafc20746c5b497ba4bafc0383d6239f3 (diff) | |
download | freebsd-ports-gnome-77eab819b155e194f87c5330c842b4d851abea91.tar.gz freebsd-ports-gnome-77eab819b155e194f87c5330c842b4d851abea91.tar.zst freebsd-ports-gnome-77eab819b155e194f87c5330c842b4d851abea91.zip |
Fix resolvers.
Obtained from: haproxy ML
Diffstat (limited to 'net')
-rw-r--r-- | net/haproxy-devel/files/patch-src-dns.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/haproxy-devel/files/patch-src-dns.c b/net/haproxy-devel/files/patch-src-dns.c new file mode 100644 index 000000000000..f06fc22173a0 --- /dev/null +++ b/net/haproxy-devel/files/patch-src-dns.c @@ -0,0 +1,11 @@ +--- src/dns.c.orig 2015-09-14 15:41:48.002439000 +0300 ++++ src/dns.c 2015-09-14 15:43:01.499844000 +0300 +@@ -848,7 +848,7 @@ int dns_init_resolvers(void) + } + + /* "connect" the UDP socket to the name server IP */ +- if (connect(fd, (struct sockaddr*)&curnameserver->addr, sizeof(curnameserver->addr)) == -1) { ++ if (connect(fd, (struct sockaddr*)&curnameserver->addr, get_addr_len(&curnameserver->addr)) == -1) { + Alert("Starting [%s/%s] nameserver: can't connect socket.\n", curr_resolvers->id, + curnameserver->id); + close(fd); |