From 3946f756620e608d1330c449e456007d22dd6291 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 13 Jul 2005 20:09:39 +0000 Subject: [PATCH] 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 --- lib/ckpt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ckpt.c b/lib/ckpt.c index 58420829..db15f235 100644 --- a/lib/ckpt.c +++ b/lib/ckpt.c @@ -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) {