summaryrefslogtreecommitdiffstats
path: root/src/handshake.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-28 00:55:39 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-28 00:55:39 +0200
commit22a6b5706593d222bfc602859dbccd7beb5231ed (patch)
tree6cb946edf94469fb04a935eb3638f80b585475f1 /src/handshake.c
parentb69d34071b26e8a6230cde199989071b833d8c99 (diff)
downloadfastd-22a6b5706593d222bfc602859dbccd7beb5231ed.tar
fastd-22a6b5706593d222bfc602859dbccd7beb5231ed.zip
Make crypto handshake with floating peers work
Diffstat (limited to 'src/handshake.c')
-rw-r--r--src/handshake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handshake.c b/src/handshake.c
index 29ed692..735a80c 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -211,7 +211,7 @@ void fastd_handshake_handle(fastd_context *ctx, fastd_peer *peer, fastd_buffer b
switch (reply_code) {
case REPLY_SUCCESS:
pr_info(ctx, "Handshake with %P successful.", peer);
- fastd_peer_set_established(ctx, peer);
+ fastd_peer_set_established(peer);
ctx->conf->protocol->init_peer(ctx, peer);
break;