xmlNodePtr action = NULL; 
HA_Message *action = NULL; 
validate_crm_message(xmlNodePtr root_xml_node,		     const char *sys,		     const char *uuid,		     const char *msg_type){	const char *from = NULL;	const char *to = NULL;	const char *type = NULL;	const char *crm_msg_reference = NULL;	xmlNodePtr action = NULL;	const char *true_sys;			if (root_xml_node == NULL) {		return NULL;	}	from = xmlGetProp(root_xml_node, XML_ATTR_SYSFROM);	to   = xmlGetProp(root_xml_node, XML_ATTR_SYSTO);	type = xmlGetProp(root_xml_node, XML_ATTR_MSGTYPE);		crm_msg_reference = xmlGetProp(root_xml_node,				       XML_ATTR_REFERENCE);/*	crm_debug("Recieved XML message with (version=%s)",	       xmlGetProp(root_xml_node, XML_ATTR_VERSION));	crm_debug("Recieved XML message with (from=%s)", from);	crm_debug("Recieved XML message with (to=%s)"  , to);	crm_debug("Recieved XML message with (type=%s)", type);	crm_debug("Recieved XML message with (ref=%s)" ,	       crm_msg_reference);*/	action = root_xml_node;	true_sys = sys;	if (uuid != NULL) true_sys = generate_hash_key(sys, uuid);	if (to == NULL) {		crm_info("No sub-system defined.");		action = NULL;	} else if (true_sys != NULL && strcmp(to, true_sys) != 0) {		crm_debug("The message is not for this sub-system (%s != %s).",			  to, true_sys);		action = NULL;	}    	if (type == NULL) {		crm_info("No message type defined.");		return NULL;	} else if (msg_type != NULL && strcmp(msg_type, type) != 0) {		crm_info("Expecting a (%s) message but received a (%s).",		       msg_type, type);		action = NULL;	}	if (crm_msg_reference == NULL) {		crm_info("No message crm_msg_reference defined.");		action = NULL;	}/* 	if(action != NULL) 		crm_debug(		       "XML is valid and node with message type (%s) found.",		       type);	crm_debug("Returning node (%s)", xmlGetNodePath(action));*/		return action;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/b121e2c08fe4d8ca02d6462216ef844ff6cc68f1/msg.c/buggy/crm/common/msg.c