diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-30 17:41:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-30 17:41:35 +0000 |
commit | 1d863dc0b41da22b5a06110d67b47a0f102cb639 (patch) | |
tree | 3570b4ace8356ad2e0dd2ce8ab2edb900257203d /sunrpc/clnt_simp.c | |
parent | Update. (diff) | |
download | glibc-1d863dc0b41da22b5a06110d67b47a0f102cb639.tar.gz glibc-1d863dc0b41da22b5a06110d67b47a0f102cb639.tar.bz2 glibc-1d863dc0b41da22b5a06110d67b47a0f102cb639.zip |
Update.
1999-06-30 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/gethostid.c: Handle failing call to
getxxbyYY_r functions correctly for non-existing entry.
* sunrpc/getrpcport.c: Likewise.
* sunrpc/clnt_simp.c: Likewise.
* inet/rexec.c: Likewise.
* sunrpc/clnt_gen.c: Likewise.
* inet/rcmd.c: Likewise.
* sysdeps/generic/glob.c: Likewise.
Diffstat (limited to 'sunrpc/clnt_simp.c')
-rw-r--r-- | sunrpc/clnt_simp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c index 41d106e570..e1e7e2ab73 100644 --- a/sunrpc/clnt_simp.c +++ b/sunrpc/clnt_simp.c @@ -105,7 +105,8 @@ callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum, buflen = 1024; buffer = __alloca (buflen); while (__gethostbyname_r (host, &hostbuf, buffer, buflen, - &hp, &herr) != 0) + &hp, &herr) != 0 + || hp == NULL) if (herr != NETDB_INTERNAL || errno != ERANGE) return (int) RPC_UNKNOWNHOST; else |