summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc/handshake.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-25 00:56:07 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-25 00:56:07 +0200
commit482ddc46a62b9a6b8bd615fd35b2bac6d3b7d841 (patch)
treec96ed40c8c3c962fd17235809fb49b2b23e93dbc /src/protocols/ec25519_fhmqvc/handshake.c
parent1bb1eb5a334e919d0f57ffa2746c64394b47d1e9 (diff)
downloadfastd-482ddc46a62b9a6b8bd615fd35b2bac6d3b7d841.tar
fastd-482ddc46a62b9a6b8bd615fd35b2bac6d3b7d841.zip
fastd_peer_claim_address: add parameter to allow claiming addresses of established peers
Diffstat (limited to 'src/protocols/ec25519_fhmqvc/handshake.c')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c
index 444ce32..7e893c8 100644
--- a/src/protocols/ec25519_fhmqvc/handshake.c
+++ b/src/protocols/ec25519_fhmqvc/handshake.c
@@ -135,7 +135,7 @@ static bool establish(fastd_peer_t *peer, const fastd_method_info_t *method, fas
pr_verbose("%I authorized as %P", remote_addr, peer);
- if (!fastd_peer_claim_address(peer, sock, local_addr, remote_addr)) {
+ if (!fastd_peer_claim_address(peer, sock, local_addr, remote_addr, true)) {
pr_warn("can't establish session with %P[%I] as the address is used by another peer", peer, remote_addr);
fastd_peer_reset(peer);
return false;