diff options
-rw-r--r-- | xlators/protocol/client/src/client-handshake.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index ac597bdbb..df58031be 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -614,8 +614,10 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc) NULL, xdr_from_setvolume_req); fail: - config.remote_port = -1; - rpc_clnt_reconfig (conf->rpc, &config); + if (ret) { + config.remote_port = -1; + rpc_clnt_reconfig (conf->rpc, &config); + } if (req.dict.dict_val) GF_FREE (req.dict.dict_val); |