cederom commented on code in PR #3600:
URL: https://github.com/apache/nuttx-apps/pull/3600#discussion_r3529535618
##########
netutils/smtp/smtp.c:
##########
@@ -116,7 +116,7 @@ static const char g_smtpto[] = "To: ";
static inline int smtp_send_message(int sockfd, struct smtp_state *psmtp)
{
- if (recv(sockfd, psmtp->buffer, SMTP_INPUT_BUFFER_SIZE, 0) < 0)
+ if (recv(sockfd, psmtp->buffer, SMTP_INPUT_BUFFER_SIZE, 0) <= 0)
Review Comment:
Hmm wouldn't that return error on empty message? This looks like a
functional change?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]