about summary refs log tree commit diff
path: root/sunrpc/clnt_udp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-12-04 13:20:06 -0500
committerUlrich Drepper <drepper@gmail.com>2011-12-04 13:20:06 -0500
commit4efbd5cb39dfa170056532185c724ab2ff545585 (patch)
tree6fc2f9183259908f20701503b97f6a6ad2dead40 /sunrpc/clnt_udp.c
parentaff2453df710c872588572a31928cff0e47da5b7 (diff)
downloadglibc-4efbd5cb39dfa170056532185c724ab2ff545585.tar.gz
glibc-4efbd5cb39dfa170056532185c724ab2ff545585.tar.xz
glibc-4efbd5cb39dfa170056532185c724ab2ff545585.zip
Fix aliasing issues in RPC code
Diffstat (limited to 'sunrpc/clnt_udp.c')
-rw-r--r--sunrpc/clnt_udp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c
index babee9abfd..294e13a58c 100644
--- a/sunrpc/clnt_udp.c
+++ b/sunrpc/clnt_udp.c
@@ -473,8 +473,7 @@ send_again:
       /* see if reply transaction id matches sent id.
 	Don't do this if we only wait for a replay */
       if (xargs != NULL
-	  && (*((u_int32_t *) (cu->cu_inbuf))
-	      != *((u_int32_t *) (cu->cu_outbuf))))
+	  && memcmp (cu->cu_inbuf, cu->cu_outbuf, sizeof (u_int32_t)) != 0)
 	continue;
       /* we now assume we have the proper reply */
       break;