#include "malloc.h"
#include "error.h"
#include "address.h"
+#include "utf8.h"
/* Read the first label from string *name, unescape "\" and write it to dest */
char *avahi_unescape_label(const char **name, char *dest, size_t size) {
*d = 0;
+ if (!avahi_utf8_valid(dest))
+ return NULL;
+
return dest;
}