diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-12-28 09:56:20 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-31 06:45:17 +0000 |
commit | 63088d8225df025e03a0ea0a0d8fdc3e8e9b9b08 (patch) | |
tree | ce0523da61aeafb3e70bf24ebc7783621aafbd70 /xlators/features/quota/src | |
parent | 3ce7b5dbf069e7bf09c3470753c21efe03339291 (diff) |
multiple-files: clang-scan fixes
updates: bz#1622665
Change-Id: I9f3a75ed9be3d90f37843a140563c356830ef945
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/features/quota/src')
-rw-r--r-- | xlators/features/quota/src/quotad-aggregator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c index e0129e4f63a..3b883d3f7e0 100644 --- a/xlators/features/quota/src/quotad-aggregator.c +++ b/xlators/features/quota/src/quotad-aggregator.c @@ -132,6 +132,9 @@ quotad_aggregator_getlimit_cbk(xlator_t *this, call_frame_t *frame, int ret = -1; int type = 0; + if (!rsp || (rsp->op_ret == -1)) + goto reply; + GF_PROTOCOL_DICT_UNSERIALIZE(frame->this, xdata, (rsp->xdata.xdata_val), (rsp->xdata.xdata_len), rsp->op_ret, rsp->op_errno, out); |