[Commits] [SCM] claws branch, master, updated. 4.2.0-50-g489d0f159

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


The branch, master has been updated
       via  489d0f159f031c0c28f641175fc915c5c7b915fc (commit)
      from  18909e44a8e960ba71ab389e78a9e42cd7576828 (commit)

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


- Log -----------------------------------------------------------------
commit 489d0f159f031c0c28f641175fc915c5c7b915fc
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 07517735c..928db54fa 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