summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-27 00:10:55 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-27 00:10:55 +0200
commit2a8c655a5dd930f196dc923f49a98817b101608e (patch)
treefdf8877130b7894bf5b71c469d031dc1503f71fe
parent9fd69a7893040cee7339246d5b17ab92b4d58a43 (diff)
downloadfastd-2a8c655a5dd930f196dc923f49a98817b101608e.tar
fastd-2a8c655a5dd930f196dc923f49a98817b101608e.zip
Correctly free handshake state with peer state
-rw-r--r--src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c b/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c
index 1cf256e..ff462ec 100644
--- a/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c
+++ b/src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c
@@ -667,6 +667,9 @@ static void protocol_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buf
}
static void protocol_free_peer_state(fastd_context *ctx, fastd_peer *peer) {
+ free_handshake(peer->protocol_state->initiating_handshake);
+ free_handshake(peer->protocol_state->accepting_handshake);
+
free(peer->protocol_state);
}