commit 489d0f159f031c0c28f641175fc915c5c7b915fc
parent 18909e44a8e960ba71ab389e78a9e42cd7576828
Author: Olaf Hering <olaf@aepfle.de>
Date: Tue, 13 Feb 2024 17:47:53 +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@aepfle.de>
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git 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
@@ -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;