summaryrefslogtreecommitdiffstatshomepage
path: root/src/data.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-09 11:37:33 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-16 06:35:58 +0100
commit1c5a090cfd20d6168d6e2950c9b2bc8e13ebc506 (patch)
treed29c19222b66433d28327239fdce71076724d07e /src/data.c
parentsiphash: update against upstream submission (diff)
downloadwireguard-monolithic-historical-1c5a090cfd20d6168d6e2950c9b2bc8e13ebc506.tar.xz
wireguard-monolithic-historical-1c5a090cfd20d6168d6e2950c9b2bc8e13ebc506.zip
messages: increase header by 3 bytes for alignment
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index ff9fd66..f8d33c6 100644
--- a/src/data.c
+++ b/src/data.c
@@ -146,7 +146,7 @@ static inline void skb_encrypt(struct sk_buff *skb, struct noise_keypair *keypai
/* Only after checksumming can we safely add on the padding at the end and the header. */
header = (struct message_data *)skb_push(skb, sizeof(struct message_data));
- header->header.type = MESSAGE_DATA;
+ header->header.type = cpu_to_le32(MESSAGE_DATA);
header->key_idx = keypair->remote_index;
header->counter = cpu_to_le64(cb->nonce);
pskb_put(skb, cb->trailer, cb->trailer_len);