- added 847790d5aab84df38256a6f9b4849af0eb408419.patch:
Fix crash for over quota users OBS-URL: https://build.opensuse.org/package/show/server:mail/dovecot23?expand=0&rev=19
This commit is contained in:
parent
7dc58a5a76
commit
0d4e201210
25
847790d5aab84df38256a6f9b4849af0eb408419.patch
Normal file
25
847790d5aab84df38256a6f9b4849af0eb408419.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 847790d5aab84df38256a6f9b4849af0eb408419 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stephan Bosch <stephan.bosch@dovecot.fi>
|
||||||
|
Date: Mon, 14 May 2018 23:56:21 +0200
|
||||||
|
Subject: [PATCH] lmtp: Fix segfault occurring when a user turns out to be over
|
||||||
|
quota at DATA transfer.
|
||||||
|
|
||||||
|
The LMTP recipient context was not updated with the final recipient address when
|
||||||
|
the RCPT command was accepted. This left a dangling struct smtp_address pointer
|
||||||
|
which triggered the segfault when used.
|
||||||
|
---
|
||||||
|
src/lmtp/lmtp-common.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/lmtp/lmtp-common.c b/src/lmtp/lmtp-common.c
|
||||||
|
index b3f13dec41..39ed6c1b4f 100644
|
||||||
|
--- a/src/lmtp/lmtp-common.c
|
||||||
|
+++ b/src/lmtp/lmtp-common.c
|
||||||
|
@@ -22,6 +22,7 @@ void lmtp_recipient_finish(struct lmtp_recipient *rcpt,
|
||||||
|
{
|
||||||
|
trcpt->context = rcpt;
|
||||||
|
|
||||||
|
+ rcpt->path = trcpt->path;
|
||||||
|
rcpt->rcpt = trcpt;
|
||||||
|
rcpt->index = index;
|
||||||
|
rcpt->rcpt_cmd = NULL;
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 27 09:31:02 UTC 2018 - mrueckert@suse.de
|
||||||
|
|
||||||
|
- added 847790d5aab84df38256a6f9b4849af0eb408419.patch:
|
||||||
|
Fix crash for over quota users
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 10 15:46:04 UTC 2018 - varkoly@suse.com
|
Tue Apr 10 15:46:04 UTC 2018 - varkoly@suse.com
|
||||||
|
|
||||||
|
@ -135,6 +135,7 @@ Patch: dovecot-2.3.0-dont_use_etc_ssl_certs.patch
|
|||||||
Patch1: dovecot-2.3.0-better_ssl_defaults.patch
|
Patch1: dovecot-2.3.0-better_ssl_defaults.patch
|
||||||
Patch2: 35497604d80090a02619024aeec069b32568e4b4.diff
|
Patch2: 35497604d80090a02619024aeec069b32568e4b4.diff
|
||||||
Patch3: 5522b8b3d3ed1a99c3b63bb120216af0bd427403.diff
|
Patch3: 5522b8b3d3ed1a99c3b63bb120216af0bd427403.diff
|
||||||
|
Patch4: 847790d5aab84df38256a6f9b4849af0eb408419.patch
|
||||||
Summary: IMAP and POP3 Server Written Primarily with Security in Mind
|
Summary: IMAP and POP3 Server Written Primarily with Security in Mind
|
||||||
License: BSD-3-Clause AND LGPL-2.1-or-later AND MIT
|
License: BSD-3-Clause AND LGPL-2.1-or-later AND MIT
|
||||||
Group: Productivity/Networking/Email/Servers
|
Group: Productivity/Networking/Email/Servers
|
||||||
@ -316,6 +317,7 @@ dovecot tree.
|
|||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
gzip -9v ChangeLog
|
gzip -9v ChangeLog
|
||||||
# Fix plugins dir.
|
# Fix plugins dir.
|
||||||
sed -i 's|#mail_plugin_dir = /usr/lib/dovecot|mail_plugin_dir = %{_libdir}/dovecot/modules|' doc/example-config/conf.d/10-mail.conf
|
sed -i 's|#mail_plugin_dir = /usr/lib/dovecot|mail_plugin_dir = %{_libdir}/dovecot/modules|' doc/example-config/conf.d/10-mail.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user