diff options
author | Günther Deschner <gd@samba.org> | 2015-04-16 11:29:00 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-05-28 04:50:35 -0700 |
commit | 19d7b6097393e4bf20f77e96cc4b3dd8f2561513 (patch) | |
tree | 03aeaf59be51b7e3b768b94e210d84caa3b27e26 /xlators | |
parent | 6fc12a43f3e20ea24969e5a3c949f7c27d9c1893 (diff) |
xlators/cluster/dht: Fix Explicit null dereferenced (CID 1291727).
Coverity CID 1291727.
Guenther
Change-Id: I95f01b638f74370f0ef04383f0f9d5799abe31f5
BUG: 789278
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-on: http://review.gluster.org/10300
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/dht/src/tier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index 40e9f07ea21..7f0affc66e0 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -540,7 +540,7 @@ tier_process_brick_cbk (dict_t *brick_dict, char *key, data_t *value, } ret = 0; out: - if (query_cbk_args->queryFILE) { + if (query_cbk_args && query_cbk_args->queryFILE) { fclose (query_cbk_args->queryFILE); query_cbk_args->queryFILE = NULL; } |