fix crash in udp_socket_create