X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/8d69b472d81bd0760fbcff753e473fbd2164ac48..006238cb5a88743545d9c7b97312563cbf8c7a56:/unix/uxcons.c diff --git a/unix/uxcons.c b/unix/uxcons.c index 6b3da51b..779ebf43 100644 --- a/unix/uxcons.c +++ b/unix/uxcons.c @@ -25,6 +25,10 @@ void cleanup_exit(int code) * Clean up. */ sk_cleanup(); + + if (cfg.protocol == PROT_SSH) + random_save_seed(); + exit(code); } @@ -258,6 +262,7 @@ void old_keyfile_warning(void) void logevent(void *frontend, char *string) { + log_eventlog(logctx, string); } int console_get_line(const char *prompt, char *str,