aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2020-02-26 03:14:09 +1100
committerMatt Dunwoodie <ncon@noconroy.net>2020-02-26 03:14:09 +1100
commitf27a7b6463574aee665e5667b126c98b4329caec (patch)
treefbd82eeee81aab3944caf49b33b70287aedb91ce
parentAdd test cases (diff)
downloadwireguard-openbsd-f27a7b6463574aee665e5667b126c98b4329caec.tar.xz
wireguard-openbsd-f27a7b6463574aee665e5667b126c98b4329caec.zip
Have unique errors for cookie_param_consume_payload
-rw-r--r--src/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cookie.c b/src/cookie.c
index b363350..3d30139 100644
--- a/src/cookie.c
+++ b/src/cookie.c
@@ -122,7 +122,7 @@ cookie_param_consume_payload(struct cookie_param *cp,
mtx_enter(&cp->cp_mtx);
if (cp->cp_mac1_valid == 0) {
- ret = EINVAL;
+ ret = ETIMEDOUT;
goto error;
}