From 2a8c655a5dd930f196dc923f49a98817b101608e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 27 Mar 2012 00:10:55 +0200 Subject: Correctly free handshake state with peer state --- src/protocol_ec25519_fhmqvc_xsalsa20_poly1305.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- cgit v1.2.3