Explorar o código

Merge trunk revision 2731:
r2731 | asalkeld | 2010-03-24 15:16:32 -0700 (Wed, 24 Mar 2010) | 2 lines

Fix unloading of evs (service id == 0)



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2771 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake %!s(int64=16) %!d(string=hai) anos
pai
achega
73531cee4a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exec/service.c

+ 1 - 1
exec/service.c

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