Mercurial > dovecot > core-2.2
changeset 21699:fbe64fac58c6
auth: Removed dead code from oauth2 mechanism
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 24 Feb 2017 12:17:21 +0200 |
parents | afe2bff4d292 |
children | 28e2d0186a42 |
files | src/auth/mech-oauth2.c |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/mech-oauth2.c Fri Feb 24 12:13:36 2017 +0200 +++ b/src/auth/mech-oauth2.c Fri Feb 24 12:17:21 2017 +0200 @@ -108,12 +108,6 @@ /* xoauth2 does not require unescaping because the data format does not contain anything to escape */ const char *username = (*ptr)+5; - if (username == NULL) { - auth_request_log_info(request, AUTH_SUBSYS_MECH, - "Invalid username"); - auth_request_fail(request); - return; - } if (!auth_request_set_username(request, username, &error)) { auth_request_log_info(request, AUTH_SUBSYS_MECH, "%s", error);