src/ckpt/ckptnd/cpnd_evt.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


If a client node is not found in cpnd_evt_proc_ckpt_open(), the checkpoint node 
director will reply with SA_AIS_ERR_BAD_HANDLE.

diff --git a/src/ckpt/ckptnd/cpnd_evt.c b/src/ckpt/ckptnd/cpnd_evt.c
--- a/src/ckpt/ckptnd/cpnd_evt.c
+++ b/src/ckpt/ckptnd/cpnd_evt.c
@@ -616,7 +616,8 @@ static uint32_t cpnd_evt_proc_ckpt_open(
        cpnd_client_node_get(cb, client_hdl, &cl_node);
        if (cl_node == NULL) {
                TRACE_4("cpnd client hdl get failed for client 
hdl:%llx",client_hdl);
-               return rc;
+               send_evt.info.cpa.info.openRsp.error = SA_AIS_ERR_BAD_HANDLE;
+               goto agent_rsp;
        }
 
        if (((cp_node = cpnd_ckpt_node_find_by_name(cb, ckpt_name)) != NULL) && 
cp_node->is_unlink == false) {

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to