summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-22 16:53:21 +0000
committerume <ume@FreeBSD.org>2003-10-22 16:53:21 +0000
commit78f757ea792b78a0927795400e65ff20cc9002e7 (patch)
treefa21a5f28e4e038e22026a5f6de7c2811034dcf2 /lib/libc/net
parent241d46a98895e0938c9155b3f511f5361cd6aff0 (diff)
downloadFreeBSD-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.c1
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
OpenPOWER on IntegriCloud