glusterfsd : fix null pointer dereference in glusterfs_handle_barrier
Change-Id: Iab86a3c4970e54c22d3170e68708e0ea432a8ea4 BUG: 1401921 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/16043 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
parent
2b4b928ed3
commit
369c619f94
@ -1348,10 +1348,14 @@ glusterfs_handle_barrier (rpcsvc_request_t *req)
|
||||
req->rpc_err = GARBAGE_ARGS;
|
||||
goto out;
|
||||
}
|
||||
ret = -1;
|
||||
|
||||
ctx = glusterfsd_ctx;
|
||||
GF_ASSERT (ctx);
|
||||
GF_VALIDATE_OR_GOTO (THIS->name, ctx, out);
|
||||
|
||||
active = ctx->active;
|
||||
GF_VALIDATE_OR_GOTO (THIS->name, active, out);
|
||||
|
||||
any = active->first;
|
||||
|
||||
dict = dict_new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user