aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/data.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-06-25 01:28:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-06-25 16:48:39 +0200
commit3e8c04a03f4070e23fc737f30c25a79d5958d734 (patch)
tree23354ba5aec33b7068421524c3e514767a1e42fb /src/data.c
parentnonce: switch to RFC6479 to better support packet reordering (diff)
downloadwireguard-monolithic-historical-3e8c04a03f4070e23fc737f30c25a79d5958d734.tar.xz
wireguard-monolithic-historical-3e8c04a03f4070e23fc737f30c25a79d5958d734.zip
tests: make fatal
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index 205020c..e10bc60 100644
--- a/src/data.c
+++ b/src/data.c
@@ -46,7 +46,7 @@ out:
}
#ifdef DEBUG
-void packet_counter_selftest(void)
+bool packet_counter_selftest(void)
{
bool success = true;
unsigned int test_num = 0, i;
@@ -129,6 +129,7 @@ void packet_counter_selftest(void)
if (success)
pr_info("nonce counter self-tests: pass\n");
+ return success;
}
#endif