From b6120b41fd50aeea967ff6495b258a8ab9ed3f63 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Mon, 17 Jan 2011 11:55:36 -0500 Subject: [PATCH] setting error status in rpc_reconnect if send_null fails we were checking for error result of send_null but not setting status, then going to "out_unlock" and since status is NO_ERROR trying to send bind_conn_to_session --- daemon/nfs41_rpc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/nfs41_rpc.c b/daemon/nfs41_rpc.c index 9dce383..1f39890 100644 --- a/daemon/nfs41_rpc.c +++ b/daemon/nfs41_rpc.c @@ -264,8 +264,11 @@ static int rpc_reconnect( goto out_unlock; client->cl_auth = rpc->rpc->cl_auth; - if (send_null(client) != RPC_SUCCESS) + if (send_null(client) != RPC_SUCCESS) { + eprintf("rpc_reconnect: send_null failed\n"); + status = ERROR_NETWORK_UNREACHABLE; goto out_err_client; + } clnt_destroy(rpc->rpc); rpc->rpc = client;