From: Michael Vrable Date: Tue, 23 Feb 2010 21:01:25 +0000 (-0800) Subject: Fix a typo in SunRPC decoding. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=f03e624198e2ea91bf15968f45ca3b8e98708d12;p=bluesky.git Fix a typo in SunRPC decoding. The code accidentally used = instead of == in a conditional, leading to decode errors in RPC packet framing. --- diff --git a/nfs3/rpc.c b/nfs3/rpc.c index 465bcd3..40cf1b0 100644 --- 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)) {