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
This commit is contained in:
Olga Kornievskaia 2011-01-17 11:55:36 -05:00
parent 3a60f23c91
commit b6120b41fd

View file

@ -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;