Fix sizeof usage with a pointer to a struct
Merge pull request #22 from mehlis/fix-dns-malloc

Fix sizeof usage with a pointer to a struct