From 489d0f159f031c0c28f641175fc915c5c7b915fc Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 13 Feb 2024 17:47:53 +0100 Subject: [PATCH] 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 --- src/common/smtp.c | 2 -- src/common/smtp.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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; -- 2.11.4.GIT