mirror of
https://github.com/espressif/esp-idf.git
synced 2026-07-23 03:13:01 +03:00
handle_dhcp: use pbuf_copy_partial for safe chain traversal The manual two-segment copy loop was replaced with a single call to pbuf_copy_partial(p, p_dhcps_msg, tlen, 0), which correctly walks the entire pbuf chain regardless of segmentation. A return-value check rejects truncated copies.