diff options
author | ume <ume@FreeBSD.org> | 2006-05-21 11:22:31 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-05-21 11:22:31 +0000 |
commit | c49929798600cc98625b30e672dfe77235791a07 (patch) | |
tree | a82b4c284a5ddf2b821903c9504a21a50b34beb7 /lib/libc/net/gai_strerror.c | |
parent | 2103e7a60f93b5663802fad9b458412411640d7c (diff) | |
download | FreeBSD-src-c49929798600cc98625b30e672dfe77235791a07.zip FreeBSD-src-c49929798600cc98625b30e672dfe77235791a07.tar.gz |
Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is
too short. This conforms to RFC3493, POSIX and XPG6.
Obtained from: NetBSD
Diffstat (limited to 'lib/libc/net/gai_strerror.c')
-rw-r--r-- | lib/libc/net/gai_strerror.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/gai_strerror.c b/lib/libc/net/gai_strerror.c index bd351ab..5611559 100644 --- a/lib/libc/net/gai_strerror.c +++ b/lib/libc/net/gai_strerror.c @@ -48,7 +48,8 @@ static const char *ai_errlist[] = { "ai_socktype not supported", /* EAI_SOCKTYPE */ "System error returned in errno", /* EAI_SYSTEM */ "Invalid value for hints", /* EAI_BADHINTS */ - "Resolved protocol is unknown" /* EAI_PROTOCOL */ + "Resolved protocol is unknown", /* EAI_PROTOCOL */ + "Argument buffer overflow" /* EAI_OVERFLOW */ }; const char * |