mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-02-05 04:36:53 +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>