summaryrefslogtreecommitdiffstats
path: root/src/protocols
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 07:11:33 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 07:11:33 +0100
commitdeb76974e225aa70825587e3eb6705634471f58c (patch)
tree66f2faf3c48165246f690bdda155a66b00451894 /src/protocols
parent6ab2671259ebfc683af69b57f400457bbbe169eb (diff)
downloadfastd-deb76974e225aa70825587e3eb6705634471f58c.tar
fastd-deb76974e225aa70825587e3eb6705634471f58c.zip
ec25519-fhmqvc: call fastd_peer_reset to setup newly added dynamic peers
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/ec25519_fhmqvc/handshake.c3
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;
}