summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd-mgmt.c
diff options
context:
space:
mode:
authorAshish Pandey <aspandey@redhat.com>2018-09-18 14:51:10 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-21 05:18:09 +0000
commitd901308a06c38fa53a3b07ed1641522a3248378d (patch)
tree1a6298d8fc27ce63256badbd19856575ce1db292 /glusterfsd/src/glusterfsd-mgmt.c
parent30bfd1eb411fd762c36b77693da7ea6d73ea31c1 (diff)
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 <aspandey@redhat.com>
Diffstat (limited to 'glusterfsd/src/glusterfsd-mgmt.c')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c4
1 files changed, 4 insertions, 0 deletions
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;