]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a build failure: r9924 thoughtlessly put an assert before some
authorSimon Tatham <anakin@pobox.com>
Mon, 15 Jul 2013 06:40:59 +0000 (06:40 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 15 Jul 2013 06:40:59 +0000 (06:40 +0000)
declarations, and gcc didn't complain but VC did.

[originally from svn r9928]
[r9924 == 1dabc578a9419783836b4808a9afc265ab2e718c]

import.c

index 77a32437a25fbc3de6d911c3b49569d73ae48a32..32a1ac5d1a7a5d580bec04a32c36127add56e224 100644 (file)
--- a/import.c
+++ b/import.c
@@ -1474,9 +1474,11 @@ struct ssh2_userkey *sshcom_read(const Filename *filename, char *passphrase,
         pos += put_mp(blob+pos, u.start, u.bytes);
         privlen = pos - publen;
     } else {
-        assert(type == DSA); /* the only other option from the if above */
         struct mpint_pos p, q, g, x, y;
         int pos = 4;
+
+        assert(type == DSA); /* the only other option from the if above */
+
         if (GET_32BIT(ciphertext) != 0) {
             errmsg = "predefined DSA parameters not supported";
             goto error;