The unified diff between revisions [826db75f..] and [a4cab2b4..] 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 [2469aa8351074283ffeaaf89f3c56a87f15cc0ed]
# to [1264a49e05001b96e621efa4abf6f9e77402ed71]
#
============================================================
--- common-session.c 2469aa8351074283ffeaaf89f3c56a87f15cc0ed
+++ common-session.c 1264a49e05001b96e621efa4abf6f9e77402ed71
@@ -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));