Mercurial > dovecot > core-2.2
changeset 18687:cc6b6d7c1574
director: UNIX auth sockets were wrongly detected as doveadm or ring sockets.
A workaround would be to use login/director-auth socket name instead of
login/director.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 14 May 2015 11:26:00 +0300 |
parents | 041b6b9921c5 |
children | 05e14a49507f |
files | src/director/main.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/main.c Wed May 13 21:35:56 2015 +0300 +++ b/src/director/main.c Thu May 14 11:26:00 2015 +0300 @@ -99,7 +99,8 @@ { unsigned int local_port; - if (net_getsockname(listen_fd, NULL, &local_port) == 0) { + if (net_getsockname(listen_fd, NULL, &local_port) == 0 && + local_port != 0) { /* TCP/IP connection */ if (local_port == set->director_doveadm_port) return DIRECTOR_SOCKET_TYPE_DOVEADM;