From 170777d39936573b545d2e1b831bc167a4968522 Mon Sep 17 00:00:00 2001 From: Brian Barrett <brbarret@open-mpi.org> Date: Fri, 29 Jul 2005 00:07:52 +0000 Subject: [PATCH] * exit on error, not success... This commit was SVN r6677. --- ompi/mca/pml/ob1/pml_ob1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/pml/ob1/pml_ob1.c b/ompi/mca/pml/ob1/pml_ob1.c index e0a709b68d..f79dc0e130 100644 --- a/ompi/mca/pml/ob1/pml_ob1.c +++ b/ompi/mca/pml/ob1/pml_ob1.c @@ -270,7 +270,7 @@ int mca_pml_ob1_add_procs(ompi_proc_t** procs, size_t nprocs) size_t size = sizeof(uint32_t); rc = mca_base_modex_recv(&mca_pml_ob1_component.pmlm_version, procs[p], (void**)&proc_arch, &size); - if(rc == OMPI_SUCCESS) return rc; + if(rc != OMPI_SUCCESS) return rc; if(size != sizeof(uint32_t)) return OMPI_ERROR; procs[p]->proc_arch = ntohl(*proc_arch);