The unified diff between revisions [7ad1775e..] and [bedf0e64..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'common-session.c'
#
#
# patch "common-session.c"
# from [96eecb59aa3e87bb0a2364636f6d7a5035bfb2ff]
# to [9b42f1be75ed3aca6bbde6560391760c34319223]
#
============================================================
--- common-session.c 96eecb59aa3e87bb0a2364636f6d7a5035bfb2ff
+++ common-session.c 9b42f1be75ed3aca6bbde6560391760c34319223
@@ -34,6 +34,7 @@
#include "kex.h"
#include "channel.h"
#include "atomicio.h"
+#include "account.h"
static void checktimeouts();
static int ident_readln(int fd, char* buf, int count);
@@ -108,7 +109,11 @@ void common_session_init(int sock, char*
ses.allowprivport = 0;
+ if (IS_DROPBEAR_SERVER) {
+ acct_reset();
+ }
+
TRACE(("leave session_init"))
}
@@ -207,6 +212,10 @@ void common_session_cleanup() {
TRACE(("leave session_cleanup: !sessinitdone"))
return;
}
+
+ if (IS_DROPBEAR_SERVER) {
+ acct_report();
+ }
m_free(ses.session_id);
m_burn(ses.keys, sizeof(struct key_context));