]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-smtp: smtp-params - Assume all capabilities are supported when adding parameter...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 15 Jul 2019 19:50:11 +0000 (21:50 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 18 Jul 2019 10:47:58 +0000 (13:47 +0300)
commit40844e85fcdfba93b9a9224ed1bc0ae62bde5d14
tree68aa5aa28afdb7a7db7f3b6265ec23ae7714d190
parent494d20bdcc4704f97ffff294b01c696b1e2d8aea
lib-smtp: smtp-params - Assume all capabilities are supported when adding parameter event fields.

The actual capabilities are not really needed, since any assigned field is
relevent for event processing, whether the remote end will accept it or not.

This also fixes an assert failure occuring for proxied connections. Since the
server and client (proxy) connections can have different capabilities and since
the client connection does not have a proper capability list available in the
beginning of the handshake, the event created for a client transaction would
cause an assert failure when parameters were assigned that did not match the
capabilities (none).
src/lib-smtp/smtp-client-transaction.c
src/lib-smtp/smtp-params.c
src/lib-smtp/smtp-params.h
src/lib-smtp/smtp-server-recipient.c
src/lib-smtp/smtp-server-transaction.c