X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/378c65045e2d11ac91dcdf16ca6a69382e9b3090..5fd70d0768f86274b22e73f3cd8f59fec0325e36:/sshrsa.c diff --git a/sshrsa.c b/sshrsa.c index 11c488e8..07853646 100644 --- a/sshrsa.c +++ b/sshrsa.c @@ -711,6 +711,11 @@ static void *rsa2_openssh_createkey(unsigned char **blob, int *len) return NULL; } + if (!rsa_verify(rsa)) { + rsa2_freekey(rsa); + return NULL; + } + return rsa; }