Skip to content

Commit

Permalink
Set psk to NULL in ssl_psk_remove-backport to 2.28
Browse files Browse the repository at this point in the history
Summary:
Back port [PR 9241](#9241) to
2.28 branch

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
  • Loading branch information
lhuang04 committed Jun 11, 2024
1 parent 3b5e1d8 commit 841c2b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/ssl_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -4452,6 +4452,7 @@ static void ssl_remove_psk(mbedtls_ssl_context *ssl)
ssl->handshake->psk_len);
mbedtls_free(ssl->handshake->psk);
ssl->handshake->psk_len = 0;
ssl->handshake->psk = NULL;
}
}

Expand Down

0 comments on commit 841c2b1

Please sign in to comment.