summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/client_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/client_t.c')
-rw-r--r--libglusterfs/src/client_t.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfs/src/client_t.c b/libglusterfs/src/client_t.c
index 4f51de9d885..1c291518564 100644
--- a/libglusterfs/src/client_t.c
+++ b/libglusterfs/src/client_t.c
@@ -288,6 +288,9 @@ gf_client_put (client_t *client, gf_boolean_t *detached)
gf_boolean_t unref = _gf_false;
int bind_ref;
+ if (client == NULL)
+ goto out;
+
if (detached)
*detached = _gf_false;
@@ -304,6 +307,9 @@ gf_client_put (client_t *client, gf_boolean_t *detached)
*detached = _gf_true;
gf_client_unref (client);
}
+
+out:
+ return;
}
client_t *