diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 00:55:39 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-28 00:55:39 +0200 |
commit | 22a6b5706593d222bfc602859dbccd7beb5231ed (patch) | |
tree | 6cb946edf94469fb04a935eb3638f80b585475f1 /src/peer.h | |
parent | b69d34071b26e8a6230cde199989071b833d8c99 (diff) | |
download | fastd-22a6b5706593d222bfc602859dbccd7beb5231ed.tar fastd-22a6b5706593d222bfc602859dbccd7beb5231ed.zip |
Make crypto handshake with floating peers work
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -98,7 +98,7 @@ static inline bool fastd_peer_is_established(const fastd_peer *peer) { return (peer->state == STATE_ESTABLISHED || peer->state == STATE_TEMP_ESTABLISHED); } -static inline void fastd_peer_set_established(fastd_context *ctx, fastd_peer *peer) { +static inline void fastd_peer_set_established(fastd_peer *peer) { switch(peer->state) { case STATE_WAIT: peer->state = STATE_ESTABLISHED; @@ -109,7 +109,6 @@ static inline void fastd_peer_set_established(fastd_context *ctx, fastd_peer *pe break; default: - pr_warn(ctx, "tried to set an already established connection to established"); return; } } |