mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00

Current code does not correctly detect port conflict if no port specified because it checks ipcb->local_port == port before udp_new_port(). Fix it by allocating a random port earlier. Signed-off-by: Axel Lin <axel.lin@ingics.com>