mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2026-01-23 02:04:50 +00:00
defect 631
Fix segfault if null pointer passed to selection object address of saCkptSelectionObjectGet (Logical change 1.212) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@680 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
92ab7d0514
commit
4e4e0ebaf1
@ -219,6 +219,9 @@ saCkptSelectionObjectGet (
|
||||
struct ckptInstance *ckptInstance;
|
||||
SaAisErrorT error;
|
||||
|
||||
if (selectionObject == NULL) {
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
error = saHandleInstanceGet (&ckptHandleDatabase, ckptHandle, (void *)&ckptInstance);
|
||||
if (error != SA_AIS_OK) {
|
||||
return (error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user