diff options
author | ume <ume@FreeBSD.org> | 2003-10-22 16:53:21 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-22 16:53:21 +0000 |
commit | 78f757ea792b78a0927795400e65ff20cc9002e7 (patch) | |
tree | fa21a5f28e4e038e22026a5f6de7c2811034dcf2 /lib/libc/net | |
parent | 241d46a98895e0938c9155b3f511f5361cd6aff0 (diff) | |
download | FreeBSD-src-78f757ea792b78a0927795400e65ff20cc9002e7.zip FreeBSD-src-78f757ea792b78a0927795400e65ff20cc9002e7.tar.gz |
oops, gai_strerror must return default value when error code
isn't found in ai_errlist.
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index b25e566..b298928 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -330,6 +330,7 @@ gai_strerror(ecode) if (p->code == ecode) return (char *)p->str; } + return "Unknown error"; } void |