From d901308a06c38fa53a3b07ed1641522a3248378d Mon Sep 17 00:00:00 2001 From: Ashish Pandey Date: Tue, 18 Sep 2018 14:51:10 +0530 Subject: glusterfsd/mgmt : Check for NULL after creating frame CID: 1382390 https://scan6.coverity.com/reports.htm#v42607/p10714fileInstanceId=85472585&defectInstanceId=26074725&mergedDefectId=1382390 Change-Id: Iade073a5e72f29ad5e8f372955869bc287eb9793 updates: bz#789278 Signed-off-by: Ashish Pandey --- glusterfsd/src/glusterfsd-mgmt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 88c9934e58e..1c27c4f748d 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -2167,6 +2167,10 @@ glusterfs_volfile_fetch_one(glusterfs_ctx_t *ctx, char *volfile_id) } frame = create_frame(THIS, ctx->pool); + if (!frame) { + ret = -1; + goto out; + } req.key = volfile_id; req.flags = 0; -- cgit