summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorHarpreet Lalwani <hlalwani@redhat.com>2018-09-18 12:31:02 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-20 14:11:38 +0000
commit649e4378ad8e3a08f24322ea7c44a3903a6a6ce4 (patch)
tree24d24f7056ab65a060b5503e0b755ee928028ae0 /xlators/features
parent65bd1e2f94781bea5ad6eeb5b4d9f9f614660085 (diff)
Quota: NULL pointer dereferencing clang Fix
Added ternary operator to avoid NULL pointer dereferencing Updates: bz#1622665 Change-Id: I903ec1973fd4bb6473d16e2680bd86ac3a20e093 Signed-off-by: Harpreet Lalwani <hlalwani@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/quota/src/quotad-aggregator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c
index d30b8cdedfc..b9c18f40f4b 100644
--- a/xlators/features/quota/src/quotad-aggregator.c
+++ b/xlators/features/quota/src/quotad-aggregator.c
@@ -283,7 +283,8 @@ errx:
int
quotad_aggregator_lookup_cbk(xlator_t *this, call_frame_t *frame, void *rsp)
{
- quotad_aggregator_submit_reply(frame, frame->local, rsp, NULL, 0, NULL,
+ quotad_aggregator_submit_reply(frame, frame ? frame->local : NULL, rsp,
+ NULL, 0, NULL,
(xdrproc_t)xdr_gfs3_lookup_rsp);
return 0;