core: fix state handling in netresolve_query_dns
core: fix state handling in netresolve_query_dns

crossdistro/netresolve,crossdistro/netresolve,andyvand/cygnetresolve,pavlix/netresolve,pavlix/netresolve,andyvand/cygnetresolve,pavlix/netresolve,andyvand/cygnetresolve,crossdistro/netresolve