(hopefully) Fix segfault in dnssd.

Initialize pointers to NULL and use malloc()
instead of asprintf.