summaryrefslogtreecommitdiffhomepage
path: root/cli-session.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-session.c
parent9a7972dcb8fffda8084c7ade32af4436aad39e81 (diff)
make signal flags volatile, simplify handling
Diffstat (limited to 'cli-session.c')
-rw-r--r--cli-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli-session.c b/cli-session.c
index 9453bb0..c28ed57 100644
--- a/cli-session.c
+++ b/cli-session.c
@@ -118,7 +118,7 @@ void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection
cli_session_init(proxy_cmd_pid);
/* Ready to go */
- sessinitdone = 1;
+ ses.init_done = 1;
/* Exchange identification */
send_session_identification();
@@ -338,7 +338,7 @@ void kill_proxy_command(void) {
static void cli_session_cleanup(void) {
- if (!sessinitdone) {
+ if (!ses.init_done) {
return;
}