From 3a9652ffc4c0173282cade6303ebe931c0c33df8 Mon Sep 17 00:00:00 2001 From: Gleb Natapov Date: Tue, 11 Mar 2008 08:13:37 +0000 Subject: [PATCH] Endpoint array may not exist if in add_proc() we failed to find suitable btl for communication with a proc. Don't segfault in this case. This commit was SVN r17804. --- ompi/mca/bml/r2/bml_r2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ompi/mca/bml/r2/bml_r2.c b/ompi/mca/bml/r2/bml_r2.c index bd34032293..b70bd05c71 100644 --- a/ompi/mca/bml/r2/bml_r2.c +++ b/ompi/mca/bml/r2/bml_r2.c @@ -671,6 +671,9 @@ int mca_bml_r2_del_proc_btl(ompi_proc_t* proc, mca_btl_base_module_t* btl) double total_bandwidth = 0; size_t b; + if(NULL == ep) + return OMPI_SUCCESS; + /* remove btl from eager list */ mca_bml_base_btl_array_remove(&ep->btl_eager, btl);