[NET]: Fix potential stack overflow in net/core/utils.c