diff options
Diffstat (limited to 'xlators/features/snapview-server/src/snapview-server-mgmt.c')
-rw-r--r-- | xlators/features/snapview-server/src/snapview-server-mgmt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xlators/features/snapview-server/src/snapview-server-mgmt.c b/xlators/features/snapview-server/src/snapview-server-mgmt.c index f2a1e7b7893..a4ce89cd47c 100644 --- a/xlators/features/snapview-server/src/snapview-server-mgmt.c +++ b/xlators/features/snapview-server/src/snapview-server-mgmt.c @@ -111,11 +111,12 @@ svs_mgmt_init (xlator_t *this) gf_log (this->name, GF_LOG_DEBUG, "svs mgmt init successful"); out: - if (ret) { - rpc_clnt_connection_cleanup (&priv->rpc->conn); - rpc_clnt_unref (priv->rpc); - priv->rpc = NULL; - } + if (ret) + if (priv) { + rpc_clnt_connection_cleanup (&priv->rpc->conn); + rpc_clnt_unref (priv->rpc); + priv->rpc = NULL; + } return ret; } |