X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/97ab28d7499e582c8b8844d5930bb589c536daa5..8815b68b87e4bc4830d138fb259f8255230fe954:/import.c diff --git a/import.c b/import.c index 25012d28..2e2c12fb 100644 --- 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. */ } /*