diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 02:32:18 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 02:32:18 +0200 |
commit | 1653c57e8167c69c11bf9aade23bdbc5207c196d (patch) | |
tree | 166ac829c50fad8ae283e4098cf0d1589458c0b4 /src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c | |
parent | 22a6b5706593d222bfc602859dbccd7beb5231ed (diff) | |
download | fastd-1653c57e8167c69c11bf9aade23bdbc5207c196d.tar fastd-1653c57e8167c69c11bf9aade23bdbc5207c196d.zip |
Make peer takeover work
Diffstat (limited to 'src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c')
-rw-r--r-- | src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c b/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c index 9610d7b..93f0432 100644 --- a/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c +++ b/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c @@ -377,7 +377,7 @@ static void establish(fastd_context *ctx, fastd_peer *peer, const fastd_peer_con pr_info(ctx, "Connection with %P established.", peer); - if (fastd_peer_is_temporary(peer)) { + if (peer_config != peer->config) { fastd_peer *perm_peer; for (perm_peer = ctx->peers; perm_peer; perm_peer = perm_peer->next) { if (perm_peer->config == peer_config) { |