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:
parent
3a60f23c91
commit
b6120b41fd
1 changed files with 4 additions and 1 deletions
|
|
@ -264,8 +264,11 @@ static int rpc_reconnect(
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
|
|
||||||
client->cl_auth = rpc->rpc->cl_auth;
|
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;
|
goto out_err_client;
|
||||||
|
}
|
||||||
|
|
||||||
clnt_destroy(rpc->rpc);
|
clnt_destroy(rpc->rpc);
|
||||||
rpc->rpc = client;
|
rpc->rpc = client;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue