X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5064e5e6c21b9f4d1bae561b6b12459b2bb18eac..9febf7ed49d2d2f13d9addc7714acd492c2c7111:/sshrsa.c diff --git a/sshrsa.c b/sshrsa.c index 7fb9694f..c4a469ee 100644 --- a/sshrsa.c +++ b/sshrsa.c @@ -842,6 +842,8 @@ static int rsa2_verifysig(void *key, char *sig, int siglen, return 0; } in = getmp(&sig, &siglen); + if (!in) + return 0; out = modpow(in, rsa->exponent, rsa->modulus); freebn(in);