Skip to content

Commit f5b82e8

Browse files
committed
ssl: fix "warning: ‘ctx’ may be used uninitialized"
The code was introduced by 65530b8 ("ssl: enable generating keying material from SSL sessions", 2022-08-03). This is harmless, but we should avoid it.
1 parent fceb978 commit f5b82e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ ossl_ssl_export_keying_material(int argc, VALUE *argv, VALUE self)
24462446
unsigned char *p;
24472447
size_t len;
24482448
int use_ctx = 0;
2449-
unsigned char *ctx;
2449+
unsigned char *ctx = NULL;
24502450
size_t ctx_len = 0;
24512451
int ret;
24522452

0 commit comments

Comments
 (0)