From b239cc66bb892b1e438b7776c2c898bb5f73edc8 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 25 Nov 2019 22:12:06 +0200 Subject: [PATCH] lib: connection: Remove assert for remote_port != 0 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/connection.c b/src/lib/connection.c index 91310d9c7a..91b1e34ca0 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -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) { -- 2.47.3