Skip to content

Commit

Permalink
lib-smtp: server: connection: Rely on i_stream_destroy(NULL) being a …
Browse files Browse the repository at this point in the history
…no-op.
  • Loading branch information
stephanbosch authored and villesavolainen committed Sep 25, 2018
1 parent d259519 commit 2636474
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib-smtp/smtp-server-connection.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 2636474

Please sign in to comment.