mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 16:56:44 +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>