From: Timo Sirainen Date: Fri, 24 Feb 2017 10:17:21 +0000 (+0200) Subject: auth: Removed dead code from oauth2 mechanism X-Git-Tag: 2.3.0.rc1~1996 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=850778e1fcd78aa0f91c53ecbab77e17d7e744a4;p=thirdparty%2Fdovecot%2Fcore.git auth: Removed dead code from oauth2 mechanism --- diff --git a/src/auth/mech-oauth2.c b/src/auth/mech-oauth2.c index ef4a025389..b55d151b04 100644 --- a/src/auth/mech-oauth2.c +++ b/src/auth/mech-oauth2.c @@ -108,12 +108,6 @@ mech_xoauth2_auth_continue(struct auth_request *request, /* 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);