aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/cookie.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-20 18:46:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-31 17:22:49 +0100
commit328e3861dcb034d38c7cc10007067abd3eebe39f (patch)
tree169962c2c1a1aa50f6ff87f1d40993c6e10e6b8e /src/cookie.c
parentcompat: fix up stat calculation for udp tunnel (diff)
downloadwireguard-monolithic-historical-328e3861dcb034d38c7cc10007067abd3eebe39f.tar.xz
wireguard-monolithic-historical-328e3861dcb034d38c7cc10007067abd3eebe39f.zip
global: accept decent check_patch.pl suggestions
Diffstat (limited to 'src/cookie.c')
-rw-r--r--src/cookie.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cookie.c b/src/cookie.c
index d25f9ec..7dffb86 100644
--- a/src/cookie.c
+++ b/src/cookie.c
@@ -40,8 +40,7 @@ void cookie_checker_precompute_device_keys(struct cookie_checker *checker)
if (likely(checker->device->static_identity.has_identity)) {
precompute_key(checker->cookie_encryption_key, checker->device->static_identity.static_public, cookie_key_label);
precompute_key(checker->message_mac1_key, checker->device->static_identity.static_public, mac1_key_label);
- }
- else {
+ } else {
memset(checker->cookie_encryption_key, 0, NOISE_SYMMETRIC_KEY_LEN);
memset(checker->message_mac1_key, 0, NOISE_SYMMETRIC_KEY_LEN);
}