diff --git a/exec/amf.c b/exec/amf.c index 1d33f6a9..557761fd 100644 --- a/exec/amf.c +++ b/exec/amf.c @@ -634,7 +634,7 @@ void haStateSetApi (struct saAmfComponent *component, SaAmfHAStateT haState) /* * this should be an assertion */ - if (component->conn_info->active == 0 || + if (component->conn_info->state != CONN_STATE_ACTIVE || component->conn_info->service != SOCKET_SERVICE_AMF) { return; } @@ -730,7 +730,7 @@ void readinessStateSetApi (struct saAmfComponent *component, /* * this should be an assertion */ - if (component->conn_info->active == 0 || + if (component->conn_info->state != CONN_STATE_ACTIVE || component->conn_info->service != SOCKET_SERVICE_AMF) { return;