fix bug introduced when replacing free-coded statements with dns_p_setptr