Mercurial > dovecot > original-hg > dovecot-1.2
diff src/auth/passdb-vpopmail.c @ 2781:e44a84dc947c HEAD
s/protocol/service/ in authentication
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 19 Oct 2004 05:51:37 +0300 |
parents | f5726706dc56 |
children | c7d426f8cb58 |
line wrap: on
line diff
--- a/src/auth/passdb-vpopmail.c Tue Oct 19 04:47:55 2004 +0300 +++ b/src/auth/passdb-vpopmail.c Tue Oct 19 05:51:37 2004 +0300 @@ -34,12 +34,12 @@ } if (((vpw->pw_gid & NO_IMAP) != 0 && - strcmp(request->protocol, "IMAP") == 0) || + strcmp(request->service, "IMAP") == 0) || ((vpw->pw_gid & NO_POP) != 0 && - strcmp(request->protocol, "POP3") == 0)) { + strcmp(request->service, "POP3") == 0)) { if (verbose) { i_info("vpopmail(%s): %s disabled", - get_log_prefix(request), request->protocol); + get_log_prefix(request), request->service); } callback(PASSDB_RESULT_USER_DISABLED, request); return; @@ -70,8 +70,8 @@ } #ifdef HAVE_VPOPMAIL_OPEN_SMTP_RELAY - if (strcmp(request->protocol, "POP3") == 0 || - strcmp(request->protocol, "IMAP") == 0) { + if (strcmp(request->service, "POP3") == 0 || + strcmp(request->service, "IMAP") == 0) { const char *host = net_ip2addr(&request->remote_ip); if (host != NULL) { /* use putenv() directly rather than env_put() which