diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 23:51:41 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 23:51:41 +0200 |
commit | 9fd69a7893040cee7339246d5b17ab92b4d58a43 (patch) | |
tree | e61d9ef3a40996214d7f738f642b9ac18e6bf95b /src/peer.c | |
parent | 5074b7d5e10c2383a3379a6df8b0708783ac704b (diff) | |
download | fastd-9fd69a7893040cee7339246d5b17ab92b4d58a43.tar fastd-9fd69a7893040cee7339246d5b17ab92b4d58a43.zip |
Allow initating and accepting handshake instances to coexist; fix some memory corruption etc. found by Valgrind
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -106,6 +106,7 @@ fastd_peer* fastd_peer_add(fastd_context *ctx, fastd_peer_config *peer_conf) { fastd_peer *peer = add_peer(ctx); peer->config = peer_conf; + peer->state = STATE_WAIT; setup_peer(ctx, peer); |