 if(safe_str_eq(xmlGetProp(msg, XML_ATTR_MSGTYPE), XML_ATTR_REQUEST)) { cl_log(LOG_INFO, "Message was a response not a request." "  Discarding"); } 
process_pe_message(xmlNodePtr msg, IPC_Channel *sender){	const char *op = get_xml_attr (msg, XML_TAG_OPTIONS,				       XML_ATTR_OP, TRUE);	const char *ref = xmlGetProp(msg, XML_ATTR_REFERENCE);	CRM_DEBUG("Processing %s op (ref=%s)...", op, ref);	if(pemsg_strm == NULL) {		pemsg_strm = fopen("/tmp/pemsg.log", "w");	}	char *msg_buffer = dump_xml_node(msg, FALSE);	fprintf(pemsg_strm, "%s: %s\n", "[in ]", msg_buffer);	fflush(pemsg_strm);	crm_free(msg_buffer);		const char *sys_to = xmlGetProp(msg, XML_ATTR_SYSTO);	if(op == NULL){		// error	} else if(strcmp(op, CRM_OP_HELLO) == 0) {		// ignore			} else if(sys_to == NULL || strcmp(sys_to, CRM_SYSTEM_PENGINE) != 0) {		CRM_DEBUG("Bad sys-to %s", sys_to);		return FALSE;			} else if(strcmp(op, CRM_OP_PECALC) == 0) {		xmlNodePtr input_cib = find_xml_node(msg, XML_TAG_CIB);		xmlNodePtr output = do_calculations(input_cib);		if (send_ipc_reply(sender, msg, output) ==FALSE) {			cl_log(LOG_WARNING,			       "Answer could not be sent");		}		free_xml(output);	} else if(strcmp(op, CRM_OP_QUIT) == 0) {		cl_log(LOG_WARNING, "Received quit message, terminating");		exit(0);	}		return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/2af2d50cb8d32bfceec0162151cfc520acdad1ac/pengine.c/buggy/crm/pengine/pengine.c