if(fsa_message_queue == NULL) { fsa_message_queue = next_message; } else { fsa_message_queue->next = next_message;
if(old_len == g_slist_length(fsa_message_queue)){ cl_log(LOG_ERR, "Couldnt add message to the queue");
put_message(xmlNodePtr new_message){	fsa_message_queue_t next_message = (fsa_message_queue_t)		crm_malloc(sizeof(struct fsa_message_queue_s));	CRM_DEBUG("Adding msg to queue");	// make sure to free it properly later	next_message->message = copy_xml_node_recursive(new_message);	next_message->next = NULL;		if(fsa_message_queue == NULL) {		fsa_message_queue = next_message;	} else {		fsa_message_queue->next = next_message;	}	CRM_DEBUG("Added msg to queue");	return fsa_message_queue;}