]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Removed dead code from oauth2 mechanism
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 24 Feb 2017 10:17:21 +0000 (12:17 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 26 Feb 2017 12:47:35 +0000 (14:47 +0200)
src/auth/mech-oauth2.c

index ef4a025389118911caa548dc72aa315e85f87807..b55d151b04170ad0359bd9cf1f40d4537f91a3e0 100644 (file)
@@ -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);