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

* 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, ...@@ -378,15 +378,15 @@ do_exc_client_userauth(struct exception_handler *s,
if ( (e->type == EXC_USERAUTH) if ( (e->type == EXC_USERAUTH)
&& (self->state->next < LIST_LENGTH(self->state->userauth->methods))) && (self->state->next < LIST_LENGTH(self->state->userauth->methods)))
{ {
CAST_SUBTYPE(client_userauth_method, method, self->state->current = self->state->next++;
LIST(self->state->userauth->methods)[self->state->current]); {
CAST_SUBTYPE(client_userauth_method, method,
self->state->current = self->state->next; LIST(self->state->userauth->methods)[self->state->current]);
self->state->next++;
self->state->failure
self->state->failure = CLIENT_USERAUTH_LOGIN(method, self->state->userauth,
= CLIENT_USERAUTH_LOGIN(method, self->state->userauth, self->state->connection, s);
self->state->connection, s); }
} }
else else
EXCEPTION_RAISE(s->parent, e); EXCEPTION_RAISE(s->parent, e);
......
Supports Markdown
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