summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-14 21:13:58 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-14 21:13:58 +0100
commitb05b3f32354f7fe9cefee74ea18020fd8069bc10 (patch)
treefc03767e344354a6f8377eb45ce3a597eb69260b /src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
parent2fb08c6455bf6f08209b5993c755c1135611813b (diff)
downloadfastd-b05b3f32354f7fe9cefee74ea18020fd8069bc10.tar
fastd-b05b3f32354f7fe9cefee74ea18020fd8069bc10.zip
Move test for initiator in the session refresh check from protocol to method
Diffstat (limited to 'src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c')
-rw-r--r--src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
index 18e0b3a..8b79d64 100644
--- a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
+++ b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
@@ -41,7 +41,7 @@ static inline bool read_key(uint8_t key[32], const char *hexkey) {
static inline void check_session_refresh(fastd_context_t *ctx, fastd_peer_t *peer) {
protocol_session_t *session = &peer->protocol_state->session;
- if (!session->refreshing && session->method->session_is_initiator(ctx, session->method_state) && session->method->session_want_refresh(ctx, session->method_state)) {
+ if (!session->refreshing && session->method->session_want_refresh(ctx, session->method_state)) {
pr_verbose(ctx, "refreshing session with %P", peer);
session->handshakes_cleaned = true;
session->refreshing = true;