From 6a332618b67987f1c5ff659c9ffbd348cd1fd2a2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 15 Jan 2019 15:42:09 +0100 Subject: [PATCH] libcli:smb: Use C99 initializer for derivation in smbXcli_base Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- libcli/smb/smbXcli_base.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index a237bf17d0a..3118365871a 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -5797,7 +5797,9 @@ NTSTATUS smb2cli_session_set_session_key(struct smbXcli_session *session, struct _derivation encryption; struct _derivation decryption; struct _derivation application; - } derivation = { }; + } derivation = { + .signing.label.length = 0, + }; size_t nonce_size = 0; if (conn == NULL) { @@ -6081,7 +6083,9 @@ NTSTATUS smb2cli_session_set_channel_key(struct smbXcli_session *session, }; struct { struct _derivation signing; - } derivation = { }; + } derivation = { + .signing.label.length = 0, + }; if (conn == NULL) { return NT_STATUS_INVALID_PARAMETER_MIX;