mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-14 09:36:31 +00:00
defect 627
Fix API crash when second parameter of saCkptCheckpointStatusGet is null (Logical change 1.208) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@672 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
b064d567d4
commit
56fb7ca44c
@ -28,8 +28,8 @@
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
# THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# Production mode flags
|
||||
CFLAGS = -O3 -Wall
|
||||
LDFLAGS =
|
||||
#CFLAGS = -O3 -Wall
|
||||
#LDFLAGS =
|
||||
|
||||
# Debug mode flags
|
||||
CFLAGS = -g -DDEBUG -Wall
|
||||
|
@ -814,6 +814,9 @@ saCkptCheckpointStatusGet (
|
||||
struct req_lib_ckpt_checkpointstatusget req_lib_ckpt_checkpointstatusget;
|
||||
struct res_lib_ckpt_checkpointstatusget res_lib_ckpt_checkpointstatusget;
|
||||
|
||||
if (checkpointStatus == NULL) {
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
|
||||
(void *)&ckptCheckpointInstance);
|
||||
if (error != SA_AIS_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user