We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0500aae commit ab02d2eCopy full SHA for ab02d2e
1 file changed
src/pk/rsa/rsa_import.c
@@ -40,7 +40,7 @@ int rsa_import(const unsigned char *in, unsigned long inlen, rsa_key *key)
40
}
41
42
/* see if the OpenSSL DER format RSA public key will work */
43
- tmpbuf_len = MAX_RSA_SIZE / 8;
+ tmpbuf_len = inlen;
44
tmpbuf = XCALLOC(1, tmpbuf_len);
45
if (tmpbuf == NULL) {
46
err = CRYPT_MEM;
0 commit comments