/* XXX - should this get an "is_close" argument, and match even closed policy handles if the call is a close, so we can handle retransmitted close operations?  */
gboolean dcerpc_fetch_polhnd_data(e_ctx_hnd *policy_hnd, char **name, guint32 *type, guint32 *open_frame, guint32 *close_frame, guint32 cur_frame)
/* XXX - should this get an "is_close" argument, and match even closed policy handles if the call is a close, so we can handle retransmitted close operations?  */
gboolean dcerpc_fetch_polhnd_data(e_ctx_hnd *policy_hnd, char **name, guint32 *type, guint32 *open_frame, guint32 *close_frame, guint32 cur_frame)
{
	pol_hash_value *value;
	pol_value *pol;
	if (name)
		*name = NULL;
	if (type)
		*type = 0;
	if (open_frame)
		*open_frame = 0;
	if (close_frame)
		*close_frame = 0;
	pol = find_pol_handle(policy_hnd, cur_frame, &value);
	if (pol) {
		if (name)
			*name = pol->name;
		if (type)
			*type = pol->type;
		if (open_frame)
			*open_frame = pol->open_frame;
		if (close_frame)
			*close_frame = pol->close_frame;
	}
	return pol != NULL;
}