Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
openais
> revision-1453.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File revision-1453.patch of Package openais
Index: exec/amfcomp.c =================================================================== --- exec/amfcomp.c (revision 1450) +++ exec/amfcomp.c (revision 1453) @@ -1129,11 +1129,14 @@ if (comp->saAmfCompPresenceState == SA_AMF_PRESENCE_RESTARTING) { comp_presence_state_set (comp, SA_AMF_PRESENCE_INSTANTIATED); - } else if (comp->saAmfCompPresenceState == SA_AMF_PRESENCE_INSTANTIATING) { + } else + if (comp->saAmfCompPresenceState == SA_AMF_PRESENCE_INSTANTIATING) { amf_comp_operational_state_set (comp, SA_AMF_OPERATIONAL_ENABLED); comp_presence_state_set (comp, SA_AMF_PRESENCE_INSTANTIATED); - } - else { + } else + if (comp->saAmfCompPresenceState == SA_AMF_PRESENCE_UNINSTANTIATED) { + return SA_AIS_ERR_INVALID_PARAM; + } else { assert (0); }