summaryrefslogtreecommitdiffhomepage
path: root/cli-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-14 23:06:01 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-14 23:06:01 +0800
commita1aa16152737421a236653242e76970d9d8c4f90 (patch)
tree3ab89af02120c78d6b68b27ee5ed9d2f75ccb17f /cli-main.c
parent9a7972dcb8fffda8084c7ade32af4436aad39e81 (diff)
make signal flags volatile, simplify handling
Diffstat (limited to 'cli-main.c')
-rw-r--r--cli-main.c2
1 files changed, 1 insertions, 1 deletions
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),