]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - import.c
X11 authentication data are generally sensitive, so blank them from packet
[PuTTY.git] / import.c
index 25012d289822d6ec324b9cabe2d2aac13818d1bf..2e2c12fb55705401cc4d57c64f92753cdfc5a860 100644 (file)
--- a/import.c
+++ b/import.c
@@ -766,6 +766,7 @@ int openssh_write(const Filename *filename, struct ssh2_userkey *key,
         footer = "-----END DSA PRIVATE KEY-----\n";
     } else {
         assert(0);                     /* zoinks! */
+       exit(1); /* XXX: GCC doesn't understand assert() on some systems. */
     }
 
     /*
@@ -1497,6 +1498,7 @@ int sshcom_write(const Filename *filename, struct ssh2_userkey *key,
        type = "dl-modp{sign{dsa-nist-sha1},dh{plain}}";
     } else {
         assert(0);                     /* zoinks! */
+       exit(1); /* XXX: GCC doesn't understand assert() on some systems. */
     }
 
     /*