From: simon Date: Mon, 15 Jul 2013 06:40:59 +0000 (+0000) Subject: Fix a build failure: r9924 thoughtlessly put an assert before some X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/9dfa2ea8423ced2bb790dadc17f25719b0299416 Fix a build failure: r9924 thoughtlessly put an assert before some declarations, and gcc didn't complain but VC did. git-svn-id: svn://svn.tartarus.org/sgt/putty@9928 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/import.c b/import.c index 77a32437..32a1ac5d 100644 --- 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;