defect 710

if ioVector == NULL in checkpoint read error should be returned


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@748 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2005-07-13 20:09:39 +00:00
parent f9e2657a9a
commit 3946f75662

View File

@ -1327,6 +1327,10 @@ saCkptCheckpointWrite (
struct iovec iov[3];
int iov_len = 0;
if (ioVector == NULL) {
return (SA_AIS_ERR_INVALID_PARAM);
}
error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
(void *)&ckptCheckpointInstance);
if (error != SA_AIS_OK) {