Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 2015 12:45:27 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396899 - head/net/haproxy-devel/files
Message-ID:  <201509141245.t8ECjRF1063670@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: demon
Date: Mon Sep 14 12:45:26 2015
New Revision: 396899
URL: https://svnweb.freebsd.org/changeset/ports/396899

Log:
  Fix resolvers.
  
  Obtained from:	haproxy ML

Added:
  head/net/haproxy-devel/files/patch-src-dns.c   (contents, props changed)

Added: head/net/haproxy-devel/files/patch-src-dns.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/haproxy-devel/files/patch-src-dns.c	Mon Sep 14 12:45:26 2015	(r396899)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509141245.t8ECjRF1063670>