diff options
Diffstat (limited to 'src/lib/libtls/tls.c')
| -rw-r--r-- | src/lib/libtls/tls.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c index bf1d9da81e..46ed8180d1 100644 --- a/src/lib/libtls/tls.c +++ b/src/lib/libtls/tls.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls.c,v 1.82 2018/11/29 14:24:23 tedu Exp $ */ | 1 | /* $OpenBSD: tls.c,v 1.83 2019/04/01 15:58:02 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -256,7 +256,9 @@ tls_configure(struct tls *ctx, struct tls_config *config) | |||
| 256 | if (config == NULL) | 256 | if (config == NULL) |
| 257 | config = tls_config_default; | 257 | config = tls_config_default; |
| 258 | 258 | ||
| 259 | pthread_mutex_lock(&config->mutex); | ||
| 259 | config->refcount++; | 260 | config->refcount++; |
| 261 | pthread_mutex_unlock(&config->mutex); | ||
| 260 | 262 | ||
| 261 | tls_config_free(ctx->config); | 263 | tls_config_free(ctx->config); |
| 262 | 264 | ||
