libmdnsd: Refactor xht_get() and remove logically dead code
libmdnsd: Refactor xht_get() and remove logically dead code

Found by Coverity Scan

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/mdnsd,troglobit/mdnsd