diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 07:11:33 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 07:11:33 +0100 |
commit | deb76974e225aa70825587e3eb6705634471f58c (patch) | |
tree | 66f2faf3c48165246f690bdda155a66b00451894 /src | |
parent | 6ab2671259ebfc683af69b57f400457bbbe169eb (diff) | |
download | fastd-deb76974e225aa70825587e3eb6705634471f58c.tar fastd-deb76974e225aa70825587e3eb6705634471f58c.zip |
ec25519-fhmqvc: call fastd_peer_reset to setup newly added dynamic peers
Diffstat (limited to 'src')
-rw-r--r-- | src/protocols/ec25519_fhmqvc/handshake.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocols/ec25519_fhmqvc/handshake.c b/src/protocols/ec25519_fhmqvc/handshake.c index 4d3d17a..7dda0a1 100644 --- a/src/protocols/ec25519_fhmqvc/handshake.c +++ b/src/protocols/ec25519_fhmqvc/handshake.c @@ -562,7 +562,6 @@ static fastd_peer_t * add_dynamic(fastd_socket_t *sock, const fastd_peer_address fastd_peer_t *peer = fastd_new0(fastd_peer_t); peer->group = conf.peer_group; - peer->iface = ctx.iface; peer->config_state = CONFIG_DYNAMIC; peer->key = fastd_new(fastd_protocol_key_t); @@ -574,6 +573,8 @@ static fastd_peer_t * add_dynamic(fastd_socket_t *sock, const fastd_peer_address /* Ugly hack */ peer->protocol_state->last_serial--; + fastd_peer_reset(peer); + return peer; } |