From a1aa16152737421a236653242e76970d9d8c4f90 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 14 Feb 2018 23:06:01 +0800 Subject: make signal flags volatile, simplify handling --- cli-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli-main.c') diff --git a/cli-main.c b/cli-main.c index 3e02e6d..09ff496 100644 --- a/cli-main.c +++ b/cli-main.c @@ -108,7 +108,7 @@ static void cli_dropbear_exit(int exitcode, const char* format, va_list param) { vsnprintf(exitmsg, sizeof(exitmsg), format, param); /* Add the prefix depending on session/auth state */ - if (!sessinitdone) { + if (!ses.init_done) { snprintf(fullmsg, sizeof(fullmsg), "Exited: %s", exitmsg); } else { snprintf(fullmsg, sizeof(fullmsg), -- cgit v1.2.3