RES_COUNTER_ALLOCATED
ret->com.state = RES_COUNTER_ALLOCATED;
else if (res->com.state != RES_COUNTER_ALLOCATED)