diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2017-06-06 17:45:51 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2017-06-07 05:48:01 +0000 |
commit | bae51359b4a3a7a9c16424b43eb5ad14f0fcad53 (patch) | |
tree | 1a4c2cc6766d46f939d78334edcf21093704eec6 | |
parent | c9860430a77f20ddfec532819542bb1d0187c06e (diff) |
glusterd: fix glusterd crash from glusterd_op_ac_rcvd_brick_op_acc
In out label, before checking ev_ctx->rsp_dict we should first check if
ev_ctx is not NULL
Change-Id: I28f4f1ee9070617a0e6a23a43af8c5756f96a47e
BUG: 1452956
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: https://review.gluster.org/17478
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Gaurav Yadav <gyadav@redhat.com>
Reviewed-by: Samikshan Bairagya <samikshan@gmail.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index dee86c26583..9eba6025427 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -7660,7 +7660,7 @@ glusterd_op_ac_rcvd_brick_op_acc (glusterd_op_sm_event_t *event, void *ctx) ev_ctx->commit_ctx); out: - if (ev_ctx->rsp_dict) + if (ev_ctx && ev_ctx->rsp_dict) dict_unref (ev_ctx->rsp_dict); GF_FREE (ev_ctx); gf_msg_debug (this->name, 0, "Returning %d", ret); |