Just like under Windows, cleanup_exit() shouldn't need to check
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Jan 2003 14:49:44 +0000 (14:49 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 12 Jan 2003 14:49:44 +0000 (14:49 +0000)
before calling random_save_seed().

git-svn-id: svn://svn.tartarus.org/sgt/putty@2562 cda61777-01e9-0310-a592-d414129be87e

unix/uxcons.c

index 579178c..c172b0a 100644 (file)
@@ -25,10 +25,7 @@ void cleanup_exit(int code)
      * Clean up.
      */
     sk_cleanup();
-
-    if (cfg.protocol == PROT_SSH)
-       random_save_seed();
-
+    random_save_seed();
     exit(code);
 }