mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/openssl] ssl: fix "warning: ‘ctx’ may be used uninitialized"
The code was introduced by65530b887e
("ssl: enable generating keying material from SSL sessions", 2022-08-03). This is harmless, but we should avoid it.f5b82e814b
This commit is contained in:
parent
04bf83d6f7
commit
e4b1627983
1 changed files with 1 additions and 1 deletions
|
@ -2450,7 +2450,7 @@ ossl_ssl_export_keying_material(int argc, VALUE *argv, VALUE self)
|
|||
unsigned char *p;
|
||||
size_t len;
|
||||
int use_ctx = 0;
|
||||
unsigned char *ctx;
|
||||
unsigned char *ctx = NULL;
|
||||
size_t ctx_len = 0;
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue