From af2331f24bc749bf02df3c89f92d44f0105032fe Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 1 Sep 2016 11:21:32 -0700 Subject: [PATCH] Fix a segfault during comm_spawn when we possibly send a message with a NULL callback function --- orte/mca/rml/base/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/mca/rml/base/base.h b/orte/mca/rml/base/base.h index 66d1c632a6..6b29d07f62 100644 --- a/orte/mca/rml/base/base.h +++ b/orte/mca/rml/base/base.h @@ -229,7 +229,7 @@ OBJ_CLASS_DECLARATION(orte_rml_recv_request_t); (m)->iov, (m)->count, \ (m)->tag, (m)->cbdata); \ } \ - } else { \ + } else if (NULL != (m)->cbfunc.buffer) { \ /* non-blocking buffer send */ \ (m)->cbfunc.buffer((m)->status, &((m)->origin), \ (m)->buffer, \