File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/regress/lib/libssl/tlsext Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
- /* $OpenBSD: tlsexttest.c,v 1.58 2022/01/11 18:29:10 jsing Exp $ */
1
+ /* $OpenBSD: tlsexttest.c,v 1.59 2022/02/05 14:54:40 jsing Exp $ */
2
2
/*
3
3
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4
4
* Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2249,7 +2249,7 @@ test_tlsext_sessionticket_server(void)
2249
2249
SSL_CTX * ssl_ctx = NULL ;
2250
2250
SSL * ssl = NULL ;
2251
2251
int failure ;
2252
- uint8_t * data ;
2252
+ uint8_t * data = NULL ;
2253
2253
size_t dlen ;
2254
2254
CBB cbb ;
2255
2255
@@ -2318,6 +2318,7 @@ test_tlsext_sessionticket_server(void)
2318
2318
CBB_cleanup (& cbb );
2319
2319
SSL_CTX_free (ssl_ctx );
2320
2320
SSL_free (ssl );
2321
+ free (data );
2321
2322
2322
2323
return (failure );
2323
2324
}
@@ -2800,6 +2801,8 @@ test_tlsext_clienthello_build(void)
2800
2801
goto err ;
2801
2802
}
2802
2803
2804
+ free (data );
2805
+ data = NULL ;
2803
2806
CBB_cleanup (& cbb );
2804
2807
CBB_init (& cbb , 0 );
2805
2808
@@ -2917,6 +2920,8 @@ test_tlsext_serverhello_build(void)
2917
2920
}
2918
2921
2919
2922
CBB_cleanup (& cbb );
2923
+ free (data );
2924
+ data = NULL ;
2920
2925
CBB_init (& cbb , 0 );
2921
2926
2922
2927
/* Turn a few things on so we get extensions... */
@@ -3326,6 +3331,8 @@ test_tlsext_keyshare_server(void)
3326
3331
goto done ;
3327
3332
}
3328
3333
3334
+ tls_key_share_free (ssl -> s3 -> hs .key_share );
3335
+
3329
3336
if ((ssl -> s3 -> hs .key_share =
3330
3337
tls_key_share_new_nid (NID_X25519 )) == NULL ) {
3331
3338
FAIL ("failed to create key share" );
You can’t perform that action at this time.
0 commit comments