Use char * in open() call
Cleanup dnet_state_reset() calls - generally it is not allowed to 'put' state's refcnt from arbitrary place, since we do not know whether refcnt was increased or not previously.
v2.24.14.2