Skip to content

Commit

Permalink
Merge pull request #9246 from lhuang04/mbedtls_2_28_psk_null_back_port
Browse files Browse the repository at this point in the history
Set psk to NULL in ssl_psk_remove-backport to 2.28
  • Loading branch information
tom-cosgrove-arm authored Jun 12, 2024
2 parents cd84e80 + 0a2dd6d commit 152983b
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 152983b

Please sign in to comment.