Skip to content

Commit

Permalink
director: Fixed error handling when directors support incompatible tags
Browse files Browse the repository at this point in the history
Connection should have been disconnected immediately, not after the next
command that would have produced "Incompatible protocol".
  • Loading branch information
sirainen committed Jun 14, 2016
1 parent df0fe39 commit 3920a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/director/director-connection.c
Expand Up @@ -1239,7 +1239,7 @@ director_connection_handle_handshake(struct director_connection *conn,
if (conn->minor_version < DIRECTOR_VERSION_TAGS_V2 &&
mail_hosts_have_tags(conn->dir->mail_hosts)) {
i_error("director(%s): Director version supports incompatible tags", conn->name);
return FALSE;
return -1;
}
conn->version_received = TRUE;
if (conn->done_pending) {
Expand Down

0 comments on commit 3920a5f

Please sign in to comment.