aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/messages.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 03:54:28 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-08 18:51:34 +0200
commit780a5974d0256eed1e03a096b43f066043f8eb15 (patch)
tree3ba7923f145fd27706c11f956b1e485fd7dca5d6 /src/messages.h
parentglobal: rename struct wireguard_ to struct wg_ (diff)
downloadwireguard-monolithic-historical-780a5974d0256eed1e03a096b43f066043f8eb15.tar.xz
wireguard-monolithic-historical-780a5974d0256eed1e03a096b43f066043f8eb15.zip
global: more nits
Diffstat (limited to '')
-rw-r--r--src/messages.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages.h b/src/messages.h
index 090e6f0..c4061cb 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -22,7 +22,7 @@ enum noise_lengths {
NOISE_HASH_LEN = BLAKE2S_HASH_SIZE
};
-#define noise_encrypted_len(plain_len) (plain_len + NOISE_AUTHTAG_LEN)
+#define noise_encrypted_len(plain_len) ((plain_len) + NOISE_AUTHTAG_LEN)
enum cookie_values {
COOKIE_SECRET_MAX_AGE = 2 * 60,