mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-06-12 23:37:44 +00:00
defect 790
if sectionDescriptor is null in iteration next call, segfault occurs git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@783 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
283790b715
commit
2db57a7bf5
@ -1328,6 +1328,10 @@ saCkptSectionIterationNext (
|
||||
struct res_lib_ckpt_sectioniteratornext res_lib_ckpt_sectioniteratornext;
|
||||
struct iteratorSectionIdListEntry *iteratorSectionIdListEntry;
|
||||
|
||||
if (sectionDescriptor == NULL) {
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
|
||||
error = saHandleInstanceGet (&ckptSectionIterationHandleDatabase,
|
||||
sectionIterationHandle, (void *)&ckptSectionIterationInstance);
|
||||
if (error != SA_AIS_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user