diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2011-12-22 19:27:39 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2011-12-22 19:27:39 +0000 |
commit | 8a031172c235ab0def5763dd5f3a00f9ff10c053 (patch) | |
tree | 11ba9c29e8edc754174f18e6db425971144769c9 /libc/nis | |
parent | a179b968417641981213cfe422c741141d8394e4 (diff) | |
download | eglibc2-8a031172c235ab0def5763dd5f3a00f9ff10c053.tar.gz |
Merge changes between r16068 and r16332 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@16333 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/nis')
-rw-r--r-- | libc/nis/nis_findserv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/nis/nis_findserv.c b/libc/nis/nis_findserv.c index b1a9aa7e0..b02c63bdb 100644 --- a/libc/nis/nis_findserv.c +++ b/libc/nis/nis_findserv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 2000, 2001, 2010 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2000, 2001, 2010, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997. @@ -175,7 +175,9 @@ __nis_findfastest_with_timeout (dir_binding *bind, (xdrproc_t) xdr_void, (caddr_t) 0, *timeout); if (RPC_SUCCESS == rc) { - fastest = *((u_int32_t *) (cu->cu_inbuf)) - xid_seed; + u_int32_t val; + memcpy (&val, cu->cu_inbuf, sizeof (u_int32_t)); + fastest = val - xid_seed; if (fastest < pings_count) { bind->server_used = pings[fastest].server_nr; bind->current_ep = pings[fastest].server_ep; |