]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: connection: Remove assert for remote_port != 0
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 25 Nov 2019 20:12:06 +0000 (22:12 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 26 Nov 2019 09:56:35 +0000 (11:56 +0200)
This can happen if connection_init_server_ip() is called with remote_ip set
but not remote_port. Alternative fix might be to move the assert to it.

src/lib/connection.c

index 91310d9c7a4850c6f7ed45f62abb080953b8b7c9..91b1e34ca033a836240856a8496131badb10d046 100644 (file)
@@ -383,7 +383,6 @@ connection_update_properties(struct connection *conn)
 
        if (conn->remote_ip.family != 0) {
                /* remote IP was already set */
-               i_assert(conn->remote_port != 0);
        } else if (conn->unix_peer_checked) {
                /* already checked */
        } else if (fd < 0) {