diff options
-rw-r--r-- | nfsd/ChangeLog | 4 | ||||
-rw-r--r-- | nfsd/loop.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/nfsd/ChangeLog b/nfsd/ChangeLog index 7d89361b..b0da0207 100644 --- a/nfsd/ChangeLog +++ b/nfsd/ChangeLog @@ -1,3 +1,7 @@ +2006-03-15 Thomas Schwinge <tschwinge@gnu.org> + + * loop.c (server_loop): Fix invalid lvalues. + 2002-09-29 Marcus Brinkmann <marcus@gnu.org> * loop.c (server_loop): Use memset instead bzero. diff --git a/nfsd/loop.c b/nfsd/loop.c index 246e0ba8..bfec5e5a 100644 --- a/nfsd/loop.c +++ b/nfsd/loop.c @@ -1,5 +1,5 @@ /* loop.c - Main server loop for nfs server. - Copyright (C) 1996,98,2002 Free Software Foundation, Inc. + Copyright (C) 1996,98,2002,2006 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -77,7 +77,7 @@ server_loop (int fd) /* This transacation has already completed. */ goto repost_reply; - r = (int *) rbuf = malloc (MAXIOSIZE); + r = (int *) (rbuf = malloc (MAXIOSIZE)); if (ntohl (*p) != RPC_MSG_VERSION) { @@ -173,7 +173,7 @@ server_loop (int fd) if (amt > MAXIOSIZE) { free (rbuf); - r = (int *) rbuf = malloc (amt); + r = (int *) (rbuf = malloc (amt)); } } |