ClusterLabs/pacemaker — pull request #237 by gao-yan (2013-02-27 13:17:17+00:00)
Title: Fix: crmd: Correctly relay messages for remote clients (bnc#805626, bnc#804704)

For an invocation "crmadmin -D" from non-DC, when replying a CRM_OP_PING, in relay_message() , it revokes:
dest = text2msg_type(sys_to);

But in this case the "sys_to" is the client uuid of the remote crmadmin. It returns
random values due to the sscanf() in text2msg_type()

int scan_rc = sscanf(text, "%d", &type);

So that the message could be either sent to nobody or to other daemons.

This fixes the issue.