aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2007-01-20 15:00:06 +0000
committerBruce M Simpson <bms@FreeBSD.org>2007-01-20 15:00:06 +0000
commitf74b96e30381cf65c574a914a5290bdaf4118e1f (patch)
tree89ac776260fe06101eb9d2d39e17995faa2e0cb7
parent6f85f8fa4c8771de28eabf91ac5d86e4cc11b56b (diff)
downloadports-f74b96e30381cf65c574a914a5290bdaf4118e1f.tar.gz
ports-f74b96e30381cf65c574a914a5290bdaf4118e1f.zip
Notes
-rw-r--r--dns/nss_mdns/files/patch-src__bsdnss.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/dns/nss_mdns/files/patch-src__bsdnss.c b/dns/nss_mdns/files/patch-src__bsdnss.c
index 39d80ae8a48f..e2aa711cef94 100644
--- a/dns/nss_mdns/files/patch-src__bsdnss.c
+++ b/dns/nss_mdns/files/patch-src__bsdnss.c
@@ -1,6 +1,6 @@
---- src/bsdnss.c.orig Sat Jan 20 14:34:44 2007
-+++ src/bsdnss.c Sat Jan 20 14:35:23 2007
-@@ -0,0 +1,433 @@
+--- src/bsdnss.c.orig Sat Jan 20 14:52:09 2007
++++ src/bsdnss.c Sat Jan 20 14:56:24 2007
+@@ -0,0 +1,430 @@
+/* rcs tags go here when pushed upstream */
+/* Original author: Bruce M. Simpson <bms@FreeBSD.org> */
+
@@ -177,12 +177,6 @@
+ return (NS_UNAVAIL);
+ }
+
-+ /* XXX: review this check */
-+ if (pai->ai_flags != 0) {
-+ *resultp = sentinel.ai_next;
-+ return (NS_UNAVAIL);
-+ }
-+
+ mbufp = malloc((sizeof(struct hostent) + mbuflen));
+ if (mbufp == NULL) {
+ *resultp = sentinel.ai_next;
@@ -226,9 +220,12 @@
+
+ if (status == NS_SUCCESS) {
+ memset(ai, 0, sizeof(struct addrinfo));
-+ memset(pss, 0, sizeof(struct sockaddr_storage));
++ ai->ai_flags = pai->ai_flags;
++ ai->ai_socktype = pai->ai_socktype;
++ ai->ai_protocol = pai->ai_protocol;
+ ai->ai_family = hp->h_addrtype;
+ ai->ai_addrlen = hp->h_length;
++ memset(pss, 0, sizeof(struct sockaddr_storage));
+ pss->ss_len = hp->h_length;
+ pss->ss_family = hp->h_addrtype;
+ memcpy(&(((struct sockaddr *)pss)->sa_data),