From 5ea3a24b0ff1d8312a189b953d9c1c2d236957bd Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 9 Oct 2018 18:10:06 +0100 Subject: [PATCH] ssh2userauth: remove an unused variable. s->done_service_req was set but never read; it's not needed at all in the current code structure, where the service request has already happened in an entirely different source file and userauth never has to track it at all. --- ssh2userauth.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ssh2userauth.c b/ssh2userauth.c index 5dbb7394..ea602726 100644 --- a/ssh2userauth.c +++ b/ssh2userauth.c @@ -38,7 +38,6 @@ struct ssh2_userauth_state { AUTH_TYPE_KEYBOARD_INTERACTIVE, AUTH_TYPE_KEYBOARD_INTERACTIVE_QUIET } type; - int done_service_req; int need_pw, can_pubkey, can_passwd, can_keyb_inter; int userpass_ret; int tried_pubkey_config, done_agent; @@ -205,7 +204,6 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl) crBegin(s->crState); - s->done_service_req = FALSE; #ifndef NO_GSSAPI s->tried_gssapi = FALSE; s->tried_gssapi_keyex_auth = FALSE;