Commit 40933a58 authored by Balázs Scheidler's avatar Balázs Scheidler Committed by Niels Möller
Browse files

Call connection_lock() and connection_unlock(). (Bazsi).

Rev: src/proxy_userauth.c:1.3
parent cb6435b8
......@@ -222,6 +222,8 @@ do_handle_userauth(struct packet_handler *c,
CAST_SUBTYPE(proxy_userauth, auth, ALIST_GET(closure->methods, method));
CAST_SUBTYPE(command, service,
ALIST_GET(closure->services, requested_service));
connection_lock(connection);
if (auth && service)
{
......@@ -283,6 +285,8 @@ do_proxy_userauth_continuation(struct command_continuation *c,
CAST(delayed_apply, action, x);
int i;
connection_unlock(self->connection);
/* Ignore any further userauth messages. */
for (i = SSH_FIRST_USERAUTH_GENERIC; i < SSH_FIRST_CONNECTION_GENERIC; i++)
self->connection->dispatch[i] = self->connection->ignore;
......
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