static struct adouble *parse_adouble(TALLOC_CTX *mem_ctx,
				     uint8_t *adbuf,
				     size_t adsize,
				     off_t filesize)
{
	struct adouble *ad = NULL;
	bool ok;

	ad = talloc_zero(mem_ctx, struct adouble);
	ad->ad_data = talloc_zero_size(ad, adsize);
	assert_non_null(ad);

	memcpy(ad->ad_data, adbuf, adsize);

	ok = ad_unpack(ad, 2, filesize);
	if (!ok) {
		return NULL;
	}

	return ad;
}
static struct adouble *parse_adouble(TALLOC_CTX *mem_ctx,
				     uint8_t *adbuf,
				     size_t adsize,
				     off_t filesize)
{
	struct adouble *ad = NULL;
	bool ok;

	ad = talloc_zero(mem_ctx, struct adouble);
	ad->ad_data = talloc_zero_size(ad, adsize);
	assert_non_null(ad);

	memcpy(ad->ad_data, adbuf, adsize);

	ok = ad_unpack(ad, 2, filesize);
	if (!ok) {
		return NULL;
	}

	return ad;
}