X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/434725096984264473fc977bc1f85db7191ce103..919e9a53e43da0082f704b860fa70796c83f3c60:/sshdss.c diff --git a/sshdss.c b/sshdss.c index bf6c3ba5..3ea36952 100644 --- a/sshdss.c +++ b/sshdss.c @@ -276,6 +276,12 @@ static int dss_verifysig(void *key, char *sig, int siglen, return 0; } + if (!bignum_cmp(s, Zero)) { + freebn(r); + freebn(s); + return 0; + } + /* * Step 1. w <- s^-1 mod q. */