summaryrefslogtreecommitdiffhomepage
path: root/svr-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 /svr-session.c
parent9a7972dcb8fffda8084c7ade32af4436aad39e81 (diff)
make signal flags volatile, simplify handling
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svr-session.c b/svr-session.c
index 297d07f..3ff7953 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -124,7 +124,7 @@ void svr_session(int sock, int childpipe) {
ses.isserver = 1;
/* We're ready to go now */
- sessinitdone = 1;
+ ses.init_done = 1;
/* exchange identification, version etc */
send_session_identification();
@@ -136,7 +136,7 @@ void svr_session(int sock, int childpipe) {
/* Run the main for loop. NULL is for the dispatcher - only the client
* code makes use of it */
- session_loop(NULL);
+ session_loop(svr_chansess_checksignal);
/* Not reached */
@@ -152,7 +152,7 @@ void svr_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) {
/* before session init */
snprintf(fullmsg, sizeof(fullmsg), "Early exit: %s", exitmsg);
} else if (ses.authstate.authdone) {