diff --git a/opal/mca/btl/vader/btl_vader_module.c b/opal/mca/btl/vader/btl_vader_module.c index 2e7f738d83..df2b6d1bf0 100644 --- a/opal/mca/btl/vader/btl_vader_module.c +++ b/opal/mca/btl/vader/btl_vader_module.c @@ -305,10 +305,13 @@ static int vader_add_procs (struct mca_btl_base_module_t* btl, /* setup endpoint */ peers[proc] = component->endpoints + local_rank; - init_vader_endpoint (peers[proc], procs[proc], local_rank++); + rc = init_vader_endpoint (peers[proc], procs[proc], local_rank++); + if (OPAL_SUCCESS != rc) { + break; + } } - return OPAL_SUCCESS; + return rc; } /**