Skip to content

Commit

Permalink
tls_crypt_v2_write_client_key_file: Fix missing-field-initializers co…
Browse files Browse the repository at this point in the history
…mpiler warning

GCC wants us to be more explicit here.

Change-Id: Iaaf80c688ddff79ac9472d7237003713637c140b
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg30588.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
flichtenheld authored and cron2 committed Jan 25, 2025
1 parent dda93f3 commit 2a50daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openvpn/tls_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ tls_crypt_v2_write_client_key_file(const char *filename,
struct buffer client_key_pem = { 0 };
struct buffer dst = alloc_buf_gc(TLS_CRYPT_V2_CLIENT_KEY_LEN
+ TLS_CRYPT_V2_MAX_WKC_LEN, &gc);
struct key2 client_key = { 2 };
struct key2 client_key = { .n = 2 };

if (!rand_bytes((void *)client_key.keys, sizeof(client_key.keys)))
{
Expand Down

0 comments on commit 2a50daf

Please sign in to comment.