]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: oauth2 mechanism: Fixed implicit boolean expression involving a pointer.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 19 Feb 2017 20:58:54 +0000 (21:58 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 19 Feb 2017 20:58:54 +0000 (21:58 +0100)
Found with Clang -Wstrict-bool.

src/auth/mech-oauth2.c

index 5e024d4a7fa1a6d4723512d47a808ae8fe4bf1b5..ef4a025389118911caa548dc72aa315e85f87807 100644 (file)
@@ -54,7 +54,7 @@ static void oauth2_verify_callback(enum passdb_result result,
                break;
        default:
                /* we could get new token after this */
-               if (request->mech_password)
+               if (request->mech_password != NULL)
                        request->mech_password = NULL;
                auth_request_handler_reply_continue(request, error, strlen(error));
                oauth2_req->failed = TRUE;