mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2026-02-01 16:27:26 +00:00
defect 1270
Fix checkpoint read operation which would return invalid operation in some circumstances. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1050 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
2eafd51e3d
commit
985d2f3989
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user