diff --git a/exec/ckpt.c b/exec/ckpt.c index 49a74a85..ca50686a 100644 --- a/exec/ckpt.c +++ b/exec/ckpt.c @@ -2939,7 +2939,7 @@ static void message_handler_req_exec_ckpt_sectionread ( /* * If dataOffset is past end of data, return INVALID PARAM */ - if (req_lib_ckpt_sectionread->dataOffset > sectionSize) { + if (req_lib_ckpt_sectionread->dataOffset > ckptCheckpointSection->sectionDescriptor.sectionSize) { sectionSize = 0; error = SA_AIS_ERR_INVALID_PARAM; goto error_exit;