From 69c97fb5ff972156a11e01955acba1f64e9be5a2 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 13 Jul 2004 17:20:56 +0000 Subject: [PATCH] Allow NULL delivery_fn in gmi_join. This basically has no effect but allows the processor to participate in multicasting and membership. (Logical change 1.38) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@112 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/gmi.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/exec/gmi.c b/exec/gmi.c index 3702a757..519e2590 100644 --- a/exec/gmi.c +++ b/exec/gmi.c @@ -2545,11 +2545,13 @@ static int user_deliver () gmi_log_printf (gmi_log_level_debug, "Last packet, delivering iovec %d entries seq %d\n", iov_len_delv, i); - gmi_deliver_fn ( - &mcast->groupname, - pend_delv->ip, - iovec_delv, - iov_len_delv); + if (gmi_deliver_fn) { + gmi_deliver_fn ( + &mcast->groupname, + pend_delv->ip, + iovec_delv, + iov_len_delv); + } /* * On the first message delivery: