This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".
The branch, master has been updated
via c889602c71be904522a112c87796a766613d1a44 (commit)
from 9c23298d9feff6333c8ec515bd607b023a360ff6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=c889602c71be904522a112c87796a766613d1a44
commit c889602c71be904522a112c87796a766613d1a44
Author: Mats Erik Andersson <[email protected]>
Date: Thu Mar 13 12:35:49 2014 +0100
logger: Source address resolution.
diff --git a/ChangeLog b/ChangeLog
index afebf42..635384c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-03-13 Mats Erik Andersson <[email protected]>
+
+ logger: Source address resolution.
+
+ * src/logger.c (open_socket) [HAVE_DECL_GETADDRINFO]
+ <source is set>: Delete resolver hint for numeric address.
+
2014-03-10 Mats Erik Andersson <[email protected]>
hostname: Sanity checks in corner cases.
diff --git a/src/logger.c b/src/logger.c
index 23816db..57e23b0 100644
--- a/src/logger.c
+++ b/src/logger.c
@@ -230,15 +230,14 @@ open_socket (void)
if (source)
{
- /* Make the assumption that the source address
- * encodes a desired domain family and that it
- * be numeric. */
+ /* Resolver uses the same address family
+ * as the already resolved target host.
+ */
int ret;
struct addrinfo tips, *a;
memset (&tips, 0, sizeof (tips));
tips.ai_family = ai->ai_family;
- tips.ai_flags = AI_NUMERICHOST;
ret = getaddrinfo(source, NULL, &tips, &a);
if (ret)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
src/logger.c | 7 +++----
2 files changed, 10 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU Inetutils
_______________________________________________
Commit-inetutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/commit-inetutils