projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
105feb9
)
Fix a typo in SunRPC decoding.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Tue, 23 Feb 2010 21:01:25 +0000
(13:01 -0800)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Tue, 23 Feb 2010 21:01:25 +0000
(13:01 -0800)
The code accidentally used = instead of == in a conditional, leading to
decode errors in RPC packet framing.
nfs3/rpc.c
patch
|
blob
|
history
diff --git
a/nfs3/rpc.c
b/nfs3/rpc.c
index
465bcd3
..
40cf1b0
100644
(file)
--- a/
nfs3/rpc.c
+++ b/
nfs3/rpc.c
@@
-684,7
+684,7
@@
static gboolean async_rpc_do_read(GIOChannel *channel,
/* We were reading in the fragment body. */
rpc->frag_len -= bytes_read;
- if (rpc->frag_len = 0x80000000) {
+ if (rpc->frag_len =
=
0x80000000) {
/* We have a complete message since this was the last fragment and
* there are no more bytes in it. Dispatch the message. */
if (!async_rpc_dispatch(rpc)) {