From: Timo Sirainen Date: Wed, 1 Jun 2022 08:06:13 +0000 (+0300) Subject: doveadm: Assert-crash if empty referral is attempted to be sent X-Git-Tag: 2.4.0~4023 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96a01b4f8b5459f2b6709eb5502366e2bfeaec6d;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Assert-crash if empty referral is attempted to be sent This shouldn't happen anymore after allocating referral from the context pool. --- diff --git a/src/doveadm/client-connection-tcp.c b/src/doveadm/client-connection-tcp.c index 3763f0ae8c..777042f554 100644 --- a/src/doveadm/client-connection-tcp.c +++ b/src/doveadm/client-connection-tcp.c @@ -163,6 +163,7 @@ doveadm_cmd_server_post(struct client_connection_tcp *conn, const char *str = NULL; if (cctx->referral != NULL) { + i_assert(cctx->referral[0] != '\0'); o_stream_nsend_str(conn->output, t_strdup_printf( "\n-REFERRAL %s\n", cctx->referral)); return;