mirror_metadata_decode
if (mirror_metadata_decode((u_char *)&tmpmd, &md) != 0) {
error = mirror_metadata_decode(buf, md);