summaryrefslogtreecommitdiff
path: root/regress/lib/libssl
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-04-14 14:23:06 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-04-14 14:23:06 +0000
commit3438de07b522f6dfa94c0429c701b1455ed45c84 (patch)
treebf482730e6b8e75bcc8406c8d8a433cfb844327c /regress/lib/libssl
parentae8fd06824c459294398366e146e4f72a22dc647 (diff)
Plug a memleak caused by an extra bump of a refcount
SSL_set_session() should really be called SSL_set1_session()...
Diffstat (limited to 'regress/lib/libssl')
-rw-r--r--regress/lib/libssl/exporter/exportertest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regress/lib/libssl/exporter/exportertest.c b/regress/lib/libssl/exporter/exportertest.c
index 66155bde574..252fcb062e5 100644
--- a/regress/lib/libssl/exporter/exportertest.c
+++ b/regress/lib/libssl/exporter/exportertest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exportertest.c,v 1.2 2022/11/26 16:08:56 tb Exp $ */
+/* $OpenBSD: exportertest.c,v 1.3 2023/04/14 14:23:05 tb Exp $ */
/*
* Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
*
@@ -558,7 +558,6 @@ exporter_test(size_t test_no, const struct exporter_test *et)
fprintf(stderr, "FAIL: SSL_set_session\n");
goto failure;
}
- SSL_SESSION_up_ref(ssl_session);
memcpy(ssl_session->master_key, et->master_key,
sizeof(ssl_session->master_key));