summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2007-04-30 07:33:13 +0000
committerale <ale@FreeBSD.org>2007-04-30 07:33:13 +0000
commit7aa6039a8beea43036a5a5d341acaf9323e4bfbf (patch)
tree825218614f6db5b2e587e05d047cb40d3fd16d76
parent3b658afdcd643d572464cf1e80ff9a83a928ea53 (diff)
downloadFreeBSD-ports-7aa6039a8beea43036a5a5d341acaf9323e4bfbf.zip
FreeBSD-ports-7aa6039a8beea43036a5a5d341acaf9323e4bfbf.tar.gz
Fix recursive resolver.
Submitted by: Pietro Celentano <pcelentano@tiscalinet.it>
-rw-r--r--dns/mydns-ng/Makefile2
-rw-r--r--dns/mydns-ng/files/patch-src_mydns_recursive.c12
-rw-r--r--dns/mydns/Makefile2
-rw-r--r--dns/mydns/files/patch-src_mydns_recursive.c12
4 files changed, 26 insertions, 2 deletions
diff --git a/dns/mydns-ng/Makefile b/dns/mydns-ng/Makefile
index 95e77a3..f76ba6b 100644
--- a/dns/mydns-ng/Makefile
+++ b/dns/mydns-ng/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mydns
PORTVERSION= 1.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= dns databases
MASTER_SITES= http://mydns.bboy.net/download/
diff --git a/dns/mydns-ng/files/patch-src_mydns_recursive.c b/dns/mydns-ng/files/patch-src_mydns_recursive.c
new file mode 100644
index 0000000..b86c0f2
--- /dev/null
+++ b/dns/mydns-ng/files/patch-src_mydns_recursive.c
@@ -0,0 +1,12 @@
+--- src/mydns/recursive.c.orig Mon Apr 30 08:17:52 2007
++++ src/mydns/recursive.c Mon Apr 30 08:22:13 2007
+@@ -109,8 +109,7 @@
+ #endif
+
+ /* Send to remote server */
+- if ((rv = sendto(t->recursive_fd, query, querylen, 0,
+- (struct sockaddr *)&recursive_sa, sizeof(struct sockaddr_in))) != querylen)
++ if ((rv = send(t->recursive_fd, query, querylen, 0)) != querylen)
+ {
+ if (errno == EAGAIN)
+ {
diff --git a/dns/mydns/Makefile b/dns/mydns/Makefile
index 95e77a3..f76ba6b 100644
--- a/dns/mydns/Makefile
+++ b/dns/mydns/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mydns
PORTVERSION= 1.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= dns databases
MASTER_SITES= http://mydns.bboy.net/download/
diff --git a/dns/mydns/files/patch-src_mydns_recursive.c b/dns/mydns/files/patch-src_mydns_recursive.c
new file mode 100644
index 0000000..b86c0f2
--- /dev/null
+++ b/dns/mydns/files/patch-src_mydns_recursive.c
@@ -0,0 +1,12 @@
+--- src/mydns/recursive.c.orig Mon Apr 30 08:17:52 2007
++++ src/mydns/recursive.c Mon Apr 30 08:22:13 2007
+@@ -109,8 +109,7 @@
+ #endif
+
+ /* Send to remote server */
+- if ((rv = sendto(t->recursive_fd, query, querylen, 0,
+- (struct sockaddr *)&recursive_sa, sizeof(struct sockaddr_in))) != querylen)
++ if ((rv = send(t->recursive_fd, query, querylen, 0)) != querylen)
+ {
+ if (errno == EAGAIN)
+ {
OpenPOWER on IntegriCloud