Skip to content

Commit

Permalink
managesieve-login: authenticate command: Make sure client->auth_mech_…
Browse files Browse the repository at this point in the history
…name_parsed is reset properly upon command error.

This could cause problems for any subsequent AUTHENTICATE commmend.
  • Loading branch information
stephanbosch committed Jul 6, 2017
1 parent dd34509 commit f7b63d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managesieve-login/client-authenticate.c
Expand Up @@ -299,8 +299,8 @@ int cmd_authenticate
msieve_client->skip_line = FALSE;
if ( (ret=managesieve_client_auth_read_response(msieve_client, TRUE, &error))
< 0 ) {
msieve_client->auth_mech_name_parsed = FALSE;
if ( error != NULL ) {
msieve_client->auth_mech_name_parsed = FALSE;
client_send_no(client, error);
}
return 1;
Expand Down

0 comments on commit f7b63d9

Please sign in to comment.