summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/client_t.c
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-08-18 11:39:03 +0530
committerNiels de Vos <ndevos@redhat.com>2018-08-19 10:03:52 +0000
commitfab6944206bf44e2260f20a9d5f1e785f933e705 (patch)
tree0eef23967b99436f0aab400b29a4c703a337d3d1 /libglusterfs/src/client_t.c
parent23e2a420f90c4d39386a0c0c2a8bea0e376ab070 (diff)
coverity: libglusterfs issues
CID: 1391415, 1274122, 1274201, 1382408, 1382437, 1389436 1288798, 1288106, 1288110 updates: bz#789278 Change-Id: I48c7a50f22f5f4580310040c66463d9f7dd26204 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/client_t.c')
-rw-r--r--libglusterfs/src/client_t.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libglusterfs/src/client_t.c b/libglusterfs/src/client_t.c
index aeade5b3a20..046f72e021d 100644
--- a/libglusterfs/src/client_t.c
+++ b/libglusterfs/src/client_t.c
@@ -744,7 +744,8 @@ gf_client_dump_fdtables_to_dict (xlator_t *this, dict_t *dict)
clienttable->cliententries[count].next_free)
continue;
client = clienttable->cliententries[count].client;
- if (!strcmp (client->bound_xl->name, this->name)) {
+ if (client->bound_xl &&
+ !strcmp (client->bound_xl->name, this->name)) {
snprintf (key, sizeof (key), "conn%d", count++);
fdtable_dump_to_dict (client->server_ctx.
fdtable,