]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tipc/node.c
tipc: fix clang warning in tipc/node.c
[mirror_iproute2.git] / tipc / node.c
index 6c796bfbaac3b47228b711ec53c01b43933df32f..ffdaeaeabfbd059266aecdedba101613b632f85e 100644 (file)
@@ -179,8 +179,10 @@ static int cmd_node_set_key(struct nlmsghdr *nlh, const struct cmd *cmd,
                            struct cmdl *cmdl, void *data)
 {
        struct {
-               struct tipc_aead_key key;
-               char mem[TIPC_AEAD_KEYLEN_MAX + 1];
+               union {
+                       struct tipc_aead_key key;
+                       char mem[TIPC_AEAD_KEY_SIZE_MAX];
+               };
        } input = {};
        struct opt opts[] = {
                { "algname",    OPT_KEYVAL,     NULL },