diff options
author | bcook <bcook@openbsd.org> | 2020-12-22 13:07:54 +0000 |
---|---|---|
committer | bcook <bcook@openbsd.org> | 2020-12-22 13:07:54 +0000 |
commit | b900ccc5e613ff6c98d5b107d37a50e552fb939c (patch) | |
tree | 94534e975d8fe2a9cd931fc5381bd010f8adfcc7 /lib/libtls | |
parent | Defer hardware initialization in order to give things like PCIe PHYs (diff) | |
download | wireguard-openbsd-b900ccc5e613ff6c98d5b107d37a50e552fb939c.tar.xz wireguard-openbsd-b900ccc5e613ff6c98d5b107d37a50e552fb939c.zip |
Destroy the mutex in tls_config objects when tls_config_free is called.
Add a stub for pthread_mutex_destroy() for installers.
ok tb@
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/tls_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libtls/tls_config.c b/lib/libtls/tls_config.c index 7d50eb4ba24..7a0d6d8adf2 100644 --- a/lib/libtls/tls_config.c +++ b/lib/libtls/tls_config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_config.c,v 1.60 2020/12/22 02:20:44 bcook Exp $ */ +/* $OpenBSD: tls_config.c,v 1.61 2020/12/22 13:07:54 bcook Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -179,6 +179,8 @@ tls_config_free(struct tls_config *config) free((char *)config->crl_mem); free(config->ecdhecurves); + pthread_mutex_destroy(&config->mutex); + free(config); } |