If instance->memb_state is not OPERATION or RECOVERY, we was passing NULL to cs_queue_used call. Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx> --- exec/totemsrp.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/exec/totemsrp.c b/exec/totemsrp.c index b0a0560..7fcee9b 100644 --- a/exec/totemsrp.c +++ b/exec/totemsrp.c @@ -3414,7 +3414,10 @@ static unsigned int backlog_get (struct totemsrp_instance *instance) if (instance->memb_state == MEMB_STATE_RECOVERY) { queue_use = &instance->retrans_message_queue; } - backlog = cs_queue_used (queue_use); + + if (queue_use != NULL) { + backlog = cs_queue_used (queue_use); + } instance->stats.token[instance->stats.latest_token].backlog_calc = backlog; return (backlog); -- 1.7.1 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss