summaryrefslogtreecommitdiffhomepage
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
commitda8fe333327e8020170fcfef88a9e7fab6197377 (patch)
treef516f8be38c9520c238acbe4bce525fbafc4ede6 /src/cookie.c
parent3b520e44d0461b9dc216eb3b9781e389f2fbbec2 (diff)
global: accept decent check_patch.pl suggestions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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);
}