nuttx-apps/netutils/smtp
Old-Ding fd525988f8 netutils: smtp: treat recv EOF as an error
recv() returns zero when the peer closes the TCP connection cleanly. The SMTP response path only treated negative returns as errors, so EOF could leave stale or empty response data to be checked as if a server reply had arrived.

Return ERROR on zero-length receives at each SMTP response point and keep the SPDX copyright header within the project line length limit.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:29:57 +08:00
..
CMakeLists.txt netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Kconfig Add configuration settings for apps/examples/sendmail. 2020-01-24 19:07:54 -03:00
Make.defs netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
Makefile netutils: migrate the license to ASF 2024-12-21 13:53:10 +08:00
smtp.c netutils: smtp: treat recv EOF as an error 2026-07-09 09:29:57 +08:00