dnsapi: Added check for _msg_ptr vs. _ptr member in ns_msg struct.