forked from wolfSSL/wolfssl
Fix for Nginx - return specific error when at end of file
This commit is contained in:
@ -22470,7 +22470,7 @@ void* wolfSSL_GetRsaDecCtx(WOLFSSL* ssl)
|
|||||||
XFSEEK(bp->file, i, SEEK_SET);
|
XFSEEK(bp->file, i, SEEK_SET);
|
||||||
|
|
||||||
/* check calulated length */
|
/* check calulated length */
|
||||||
if (l - i <= 0)
|
if (l - i < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pem = (unsigned char*)XMALLOC(l - i, 0, DYNAMIC_TYPE_TMP_BUFFER);
|
pem = (unsigned char*)XMALLOC(l - i, 0, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
|
Reference in New Issue
Block a user