This avoids the warning from gcc about initialising the key2 struct.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20230308133743.5059-1-a@unstable.cc>
URL: https://www.mail-archive.com/search?l=mid&q=
20230308133743.5059-1-a@unstable.cc
Signed-off-by: Gert Doering <gert@greenie.muc.de>
msg(M_FATAL, "ERROR: invalid tls-crypt-v2 client key format");
}
- struct key2 key2 = { .n = 2, .keys = { 0 } };
+ struct key2 key2 = { .n = 2 };
if (!buf_read(&client_key, &key2.keys, sizeof(key2.keys)))
{
msg(M_FATAL, "ERROR: not enough data in tls-crypt-v2 client key");