]> git.proxmox.com Git - mirror_corosync.git/commitdiff
If version field is NULL as passed to saClmInitialize, return INVALID_PARAM
authorSteven Dake <sdake@redhat.com>
Mon, 17 Jul 2006 06:18:19 +0000 (06:18 +0000)
committerSteven Dake <sdake@redhat.com>
Mon, 17 Jul 2006 06:18:19 +0000 (06:18 +0000)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1130 fd59a12c-fef9-0310-b244-a6a79926bd2f

lib/clm.c

index a9af9e33ab0c5422547b84cc8e3cd9d9475973e0..3f8fb6e5519cda2beb2bf8c531db26a0a3fe4cca 100644 (file)
--- a/lib/clm.c
+++ b/lib/clm.c
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 2002-2003 MontaVista Software, Inc.
+ * Copyright (c) 2002-2005 MontaVista Software, Inc.
+ * Copyright (c) 2006 Red Hat, Inc.
  *
  * All rights reserved.
  *
@@ -145,7 +146,7 @@ saClmInitialize (
                return (SA_AIS_ERR_INVALID_PARAM);
        }
        if (version == NULL) {
-               return (SA_AIS_ERR_VERSION);
+               return (SA_AIS_ERR_INVALID_PARAM);
        }
 
        error = saVersionVerify (&clmVersionDatabase, version);