Przeglądaj źródła

Merge trunk revision 2391:
r2391 | honzaf | 2009-08-19 02:57:28 -0700 (Wed, 19 Aug 2009) | 7 lines

Fix found_service_ver handling

Sometimes, when object_key_get doesn't return found_service_ver it
doesn't change old value and this value is then used in atoi what
will can cause fall of corosync. Patch fixes this case by setting
found_service_ver to NULL before call of object_key_get.


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

Steven Dake 16 lat temu
rodzic
commit
65860ab810
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      exec/service.c

+ 2 - 0
exec/service.c

@@ -399,6 +399,8 @@ unsigned int corosync_service_defaults_link_and_init (struct corosync_api_v1 *co
 			(void *)&found_service_name,
 			NULL);
 
+		found_service_ver = NULL;
+
 		corosync_api->object_key_get (object_service_handle,
 			"ver",
 			strlen ("ver"),