mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Setting ssl->alpn_peer_requested_length to 0 when freeing ssl->alpn_peer_requested.
This commit is contained in:
@ -1710,9 +1710,10 @@ static int TLSX_ALPN_ParseAndSet(WOLFSSL *ssl, const byte *input, word16 length,
|
||||
if (isRequest) {
|
||||
/* keep the list sent by peer, if this is from a request. We
|
||||
* use it later in ALPN_Select() for evaluation. */
|
||||
if (ssl->alpn_peer_requested != NULL)
|
||||
if (ssl->alpn_peer_requested != NULL) {
|
||||
XFREE(ssl->alpn_peer_requested, ssl->heap, DYNAMIC_TYPE_ALPN);
|
||||
|
||||
ssl->alpn_peer_requested_length = 0;
|
||||
}
|
||||
ssl->alpn_peer_requested = (byte *)XMALLOC(size, ssl->heap,
|
||||
DYNAMIC_TYPE_ALPN);
|
||||
if (ssl->alpn_peer_requested == NULL) {
|
||||
|
Reference in New Issue
Block a user