diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-08 22:54:32 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-10-09 01:57:47 +0200 |
commit | 1564e913bf02a924116497bdb8c1b994298c0465 (patch) | |
tree | bd28848929af527602fd0e8474cf50670221b9a0 /src/noise.c | |
parent | main: change module description (diff) | |
download | wireguard-linux-compat-1564e913bf02a924116497bdb8c1b994298c0465.tar.xz wireguard-linux-compat-1564e913bf02a924116497bdb8c1b994298c0465.zip |
global: give if statements brackets and other cleanups
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/noise.c')
-rw-r--r-- | src/noise.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/noise.c b/src/noise.c index 0de09fb..098c060 100644 --- a/src/noise.c +++ b/src/noise.c @@ -777,8 +777,9 @@ bool wg_noise_handshake_begin_session(struct noise_handshake *handshake, ret = wg_index_hashtable_replace( &handshake->entry.peer->device->index_hashtable, &handshake->entry, &new_keypair->entry); - } else + } else { kzfree(new_keypair); + } rcu_read_unlock_bh(); out: |