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>
This commit is contained in:
Ashish Pandey 2018-09-18 14:51:10 +05:30 committed by Amar Tumballi
parent 30bfd1eb41
commit d901308a06

View File

@ -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;