@@ -804,6 +804,7 @@ ucc_status_t ucc_context_create_proc_info(
804804 status = UCC_ERR_NO_MESSAGE ;
805805 ucc_free (ctx -> addr_storage .storage );
806806 ctx -> addr_storage .storage = NULL ;
807+ ctx -> addr_storage .addr_len = 0 ;
807808 goto error_ctx_create ;
808809 }
809810 if (ctx -> addr_storage .rank != params -> oob .oob_ep ) {
@@ -812,12 +813,14 @@ ucc_status_t ucc_context_create_proc_info(
812813 status = UCC_ERR_NO_MESSAGE ;
813814 ucc_free (ctx -> addr_storage .storage );
814815 ctx -> addr_storage .storage = NULL ;
816+ ctx -> addr_storage .addr_len = 0 ;
815817 goto error_ctx_create ;
816818 }
817819 status = ucc_context_topo_init (& ctx -> addr_storage , & ctx -> topo );
818820 if (UCC_OK != status ) {
819821 ucc_free (ctx -> addr_storage .storage );
820822 ctx -> addr_storage .storage = NULL ;
823+ ctx -> addr_storage .addr_len = 0 ;
821824 ucc_error ("failed to init ctx topo" );
822825 goto error_ctx_create ;
823826 }
@@ -837,6 +840,7 @@ ucc_status_t ucc_context_create_proc_info(
837840 ucc_error ("failed to init topo for computing local rank" );
838841 ucc_free (ctx -> addr_storage .storage );
839842 ctx -> addr_storage .storage = NULL ;
843+ ctx -> addr_storage .addr_len = 0 ;
840844 goto error_ctx_create ;
841845 }
842846 b_params .node_local_id = ucc_topo_node_local_rank (topo );
@@ -963,6 +967,7 @@ ucc_status_t ucc_context_create_proc_info(
963967 ucc_error ("failed to init ctx topo" );
964968 ucc_free (ctx -> addr_storage .storage );
965969 ctx -> addr_storage .storage = NULL ;
970+ ctx -> addr_storage .addr_len = 0 ;
966971 goto error_ctx_create ;
967972 }
968973 }
0 commit comments