]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: server: connection: Rely on i_stream_destroy(NULL) being a no-op.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 20 Jun 2018 13:54:21 +0000 (15:54 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 25 Sep 2018 08:55:54 +0000 (11:55 +0300)
src/lib-smtp/smtp-server-connection.c

index f75221b0fda70820795d81a7360ef79410faf72a..ba7f9a72bc0a09253cb6755396f8515950c3495e 100644 (file)
@@ -1286,8 +1286,7 @@ void smtp_server_connection_reset_state(struct smtp_server_connection *conn)
           BDAT LAST, clears all segments sent during that transaction and resets
           the session.
         */
-       if (conn->state.data_input != NULL)
-               i_stream_destroy(&conn->state.data_input);
+       i_stream_destroy(&conn->state.data_input);
        conn->state.data_chain = NULL;
 
        /* reset state */