summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-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 b7462fcaec3..a66be21a012 100644
--- a/libglusterfs/src/client_t.c
+++ b/libglusterfs/src/client_t.c
@@ -293,6 +293,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;
@@ -309,6 +312,9 @@ gf_client_put (client_t *client, gf_boolean_t *detached)
*detached = _gf_true;
gf_client_unref (client);
}
+
+out:
+ return;
}
client_t *