diff options
Diffstat (limited to 'libglusterfs/src/client_t.c')
-rw-r--r-- | libglusterfs/src/client_t.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libglusterfs/src/client_t.c b/libglusterfs/src/client_t.c index ada85b484bb..5b0fd87a9c1 100644 --- a/libglusterfs/src/client_t.c +++ b/libglusterfs/src/client_t.c @@ -291,9 +291,10 @@ gf_client_get (xlator_t *this, struct rpcsvc_auth_data *cred, char *client_uid) unlock: UNLOCK (&clienttable->lock); - gf_log_callingfn ("client_t", GF_LOG_DEBUG, "%s: bind_ref: %d, ref: %d", - client->client_uid, client->ref.bind, - client->ref.count); + if (client) + gf_log_callingfn ("client_t", GF_LOG_DEBUG, "%s: bind_ref: %d, " + "ref: %d", client->client_uid, + client->ref.bind, client->ref.count); return client; } |