forked from wolfSSL/wolfssl
detect client not sending any compression types
This commit is contained in:
@ -18032,6 +18032,11 @@ int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
if ((i - begin) + b > helloSz)
|
if ((i - begin) + b > helloSz)
|
||||||
return BUFFER_ERROR;
|
return BUFFER_ERROR;
|
||||||
|
|
||||||
|
if (b == 0) {
|
||||||
|
WOLFSSL_MSG("No compression types in list");
|
||||||
|
return COMPRESSION_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WOLFSSL_DTLS
|
#ifdef WOLFSSL_DTLS
|
||||||
if (IsDtlsNotSctpMode(ssl)) {
|
if (IsDtlsNotSctpMode(ssl)) {
|
||||||
byte newCookie[MAX_COOKIE_LEN];
|
byte newCookie[MAX_COOKIE_LEN];
|
||||||
|
Reference in New Issue
Block a user