Commit 764be4b9 authored by Jean-Pierre Stierlin's avatar Jean-Pierre Stierlin Committed by Niels Möller

* src/client_userauth.c (do_exc_client_userauth): Update current

index before using it (bugfix contributed by jps).

Rev: src/client_userauth.c:1.39
parent 6f792460
......@@ -378,15 +378,15 @@ do_exc_client_userauth(struct exception_handler *s,
if ( (e->type == EXC_USERAUTH)
&& (self->state->next < LIST_LENGTH(self->state->userauth->methods)))
{
CAST_SUBTYPE(client_userauth_method, method,
LIST(self->state->userauth->methods)[self->state->current]);
self->state->current = self->state->next;
self->state->next++;
self->state->failure
= CLIENT_USERAUTH_LOGIN(method, self->state->userauth,
self->state->connection, s);
self->state->current = self->state->next++;
{
CAST_SUBTYPE(client_userauth_method, method,
LIST(self->state->userauth->methods)[self->state->current]);
self->state->failure
= CLIENT_USERAUTH_LOGIN(method, self->state->userauth,
self->state->connection, s);
}
}
else
EXCEPTION_RAISE(s->parent, e);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment