]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: relay backend: Add assertion in backend_relay_handle_relay_reply() to...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 30 Oct 2018 08:53:07 +0000 (09:53 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 30 Oct 2018 08:59:53 +0000 (09:59 +0100)
Assert that the error message is assinged when the result is FALSE.

src/submission/submission-backend-relay.c

index f68191d6893af0efece6382985ab9ad52590e68b..505253a81635c58f65ce740a898ecdb621b25ccb 100644 (file)
@@ -91,6 +91,8 @@ backend_relay_handle_relay_reply(struct submission_backend_relay *backend,
        if (!result) {
                const char *detail = "", *reason;
 
+               i_assert(msg != NULL);
+
                switch (reply->status) {
                case SMTP_CLIENT_COMMAND_ERROR_ABORTED:
                        i_unreached();