---

** [tickets:#1710] ava: saAmfResponse() not returning SA_AIS_ERR_TRY_AGAIN 
correctly**

**Status:** accepted
**Milestone:** 4.6.2
**Created:** Thu Mar 24, 2016 04:25 AM UTC by Gary Lee
**Last Updated:** Thu Mar 24, 2016 04:25 AM UTC
**Owner:** Gary Lee


If ava_mds_send() fails, rc is set to SA_AIS_ERR_TRY_AGAIN but this is not 
returned immediately.

Proposed fix:

diff --git a/osaf/libs/agents/saf/amfa/ava_api.c 
b/osaf/libs/agents/saf/amfa/ava_api.c
--- a/osaf/libs/agents/saf/amfa/ava_api.c
+++ b/osaf/libs/agents/saf/amfa/ava_api.c
@@ -1900,8 +1900,10 @@ SaAisErrorT saAmfResponse(SaAmfHandleT h
        else
                rc = ava_mds_send(cb, &msg, NULL);
 
-       if (NCSCC_RC_SUCCESS != rc)
+       if (NCSCC_RC_SUCCESS != rc) {
                rc = SA_AIS_ERR_TRY_AGAIN;
+               goto done;
+       }



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to