GNU TLS server sends empty CSR extension

This commit is contained in:
Sean Parkinson
2020-04-03 16:03:41 +10:00
parent 9a1687d00e
commit c0dc3091e1

View File

@ -3046,6 +3046,8 @@ static int TLSX_CSR_Parse(WOLFSSL* ssl, byte* input, word16 length,
word16 offset = 0;
word16 size = 0;
if (length == 0)
return 0;
if (length < ENUM_LEN)
return BUFFER_ERROR;