From f03e624198e2ea91bf15968f45ca3b8e98708d12 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Tue, 23 Feb 2010 13:01:25 -0800 Subject: [PATCH] Fix a typo in SunRPC decoding. The code accidentally used = instead of == in a conditional, leading to decode errors in RPC packet framing. --- nfs3/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.20.1