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/trunk@2391 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Jan Friesse 2009-08-19 09:57:28 +00:00
parent 55db0b67a2
commit d11f1f90c2

View File

@ -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"),