Add error on EOF

This commit is contained in:
Juliusz Sosinowicz
2019-11-27 17:37:19 +01:00
parent 29a8262ea4
commit b06cee333c

View File

@ -35182,6 +35182,9 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
}
if ((l = wolfSSL_BIO_get_len(bp)) <= 0) {
#if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX)
WOLFSSL_ERROR(ASN_NO_PEM_HEADER);
#endif
return NULL;
}