From 548b422560c6adc3db8db760cc3ca6142ef94bd7 Mon Sep 17 00:00:00 2001 From: Sergey Vlasov Date: Sun, 3 Jun 2001 17:19:12 +0000 Subject: [PATCH] src/smtp.c (smtp_ok): fixed sock_gets() error handling. --- ChangeLog.claws | 4 ++++ src/smtp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index f2297d815..4c04ebad6 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,7 @@ +2001-06-03 [sergey] + + * src/smtp.c (smtp_ok): fixed sock_gets() error handling. + 2001-06-03 [paul] * sync with sylpheed 0.4.99cvs4 diff --git a/src/smtp.c b/src/smtp.c index 210810149..f4c171a8c 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -136,7 +136,7 @@ gint smtp_eom(SockInfo *sock) gint smtp_ok(SockInfo *sock) { while ((sock_gets(sock, smtp_response, sizeof(smtp_response) - 1)) - != 1) { + != -1) { if (strlen(smtp_response) < 4) return SM_ERROR; strretchomp(smtp_response); -- 2.25.1