[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-49-g075f0e40d

mones at claws-mail.org mones at claws-mail.org
Tue Feb 13 16:48:44 UTC 2024


The branch, gtk2 has been updated
       via  075f0e40de714b40dfe9f5d9c7edac49655e8992 (commit)
      from  132610748ed07771d68f806af64f120e384cefdd (commit)

Summary of changes:
 src/common/smtp.c | 2 --
 src/common/smtp.h | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 075f0e40de714b40dfe9f5d9c7edac49655e8992
Author: Olaf Hering <olaf at aepfle.de>
Date:   Tue Feb 13 17:47:53 2024 +0100

    Remove wrong initialization from max_message_size
    
    A valid value can only ever be positive. It was introduced correctly
    with an unsigned type, but initialized incorrectly. Later the type was
    changed to signed, instead of removing the incorrect initialization.
    
    Restore the proper type, and remove the incorrect initial value.
    
    Signed-off-by: Olaf Hering <olaf at aepfle.de>

diff --git a/src/common/smtp.c b/src/common/smtp.c
index c8f22ec9a..da9677280 100644
--- a/src/common/smtp.c
+++ b/src/common/smtp.c
@@ -98,8 +98,6 @@ Session *smtp_session_new(void *prefs_account)
 	session->send_data                 = NULL;
 	session->send_data_len             = 0;
 
-	session->max_message_size          = -1;
-
 	session->avail_auth_type           = 0;
 	session->forced_auth_type          = 0;
 	session->auth_type                 = 0;
diff --git a/src/common/smtp.h b/src/common/smtp.h
index f20bf711c..4ed429f29 100644
--- a/src/common/smtp.h
+++ b/src/common/smtp.h
@@ -103,7 +103,7 @@ struct _SMTPSession
 	guchar *send_data;
 	guint send_data_len;
 
-	gint max_message_size;
+	guint max_message_size;
 
 	SMTPAuthType avail_auth_type;
 	SMTPAuthType forced_auth_type;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list