]> git.proxmox.com Git - mirror_corosync.git/commitdiff
Fix unloading of evs (service id == 0)
authorAngus Salkeld <asalkeld@redhat.com>
Wed, 24 Mar 2010 22:16:32 +0000 (22:16 +0000)
committerAngus Salkeld <asalkeld@redhat.com>
Wed, 24 Mar 2010 22:16:32 +0000 (22:16 +0000)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2731 fd59a12c-fef9-0310-b244-a6a79926bd2f

exec/service.c

index 6c549fd99db00cd3fb029acbb9193ba7c99e1ec7..f06ca22f63a0488a65867c09812994f9515a3dfc 100644 (file)
@@ -436,7 +436,7 @@ static unsigned int service_unlink_and_exit (
                        (void *)&service_id, NULL);
 
                if(service_id != NULL
-                       && *service_id > 0
+                       && *service_id >= 0
                        && *service_id < SERVICE_HANDLER_MAXIMUM_COUNT
                        && ais_service[*service_id] != NULL) {