Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/inetd more change on getaddrinfo error handling.
details: https://anonhg.NetBSD.org/src/rev/410adc2f6e95
branches: trunk
changeset: 494306:410adc2f6e95
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Jul 05 12:43:06 2000 +0000
description:
more change on getaddrinfo error handling.
XXX enami, I admit it is not a good thing to check the error code from
getaddrinfo. it is sometimes mandatory, however. gai_strerror message
can be too generic in some cases. we can't really extend getaddrinfo,
as it was not invented by kame (see RFC2553)
diffstat:
usr.sbin/inetd/inetd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0a575f3850a7 -r 410adc2f6e95 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c Wed Jul 05 12:42:09 2000 +0000
+++ b/usr.sbin/inetd/inetd.c Wed Jul 05 12:43:06 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inetd.c,v 1.66 2000/07/04 13:25:39 itojun Exp $ */
+/* $NetBSD: inetd.c,v 1.67 2000/07/05 12:43:06 itojun Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
#if 0
static char sccsid[] = "@(#)inetd.c 8.4 (Berkeley) 4/13/94";
#else
-__RCSID("$NetBSD: inetd.c,v 1.66 2000/07/04 13:25:39 itojun Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.67 2000/07/05 12:43:06 itojun Exp $");
#endif
#endif /* not lint */
@@ -885,7 +885,7 @@
port = sep->se_service;
error = getaddrinfo(host, port, &hints, &res);
if (error) {
- if (error == EAI_FAMILY && host == NULL) {
+ if (error == EAI_NODATA && host == NULL) {
syslog(LOG_WARNING, "%s/%s: %s: "
"the address family is not "
"supported by the kernel",
Home |
Main Index |
Thread Index |
Old Index