From deb76974e225aa70825587e3eb6705634471f58c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 23 Mar 2015 07:11:33 +0100 Subject: ec25519-fhmqvc: call fastd_peer_reset to setup newly added dynamic peers --- src/protocols/ec25519_fhmqvc/handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3