From a8f4925bbe92e33b9cf5ecbbfdc0c07a37e2963b Mon Sep 17 00:00:00 2001 From: jmjatlanta Date: Thu, 3 Aug 2017 17:48:11 -0500 Subject: [PATCH] Properly setting session context --- secio/secio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/secio/secio.c b/secio/secio.c index 60c4911..a0d9f48 100644 --- a/secio/secio.c +++ b/secio/secio.c @@ -896,6 +896,7 @@ int libp2p_secio_handshake(struct SessionContext* local_session, struct RsaPriva remote_peer->id[remote_peer->id_size] = 0; } } + remote_peer->sessionContext = local_session; } else { if (remote_peer->sessionContext != local_session) { // clean up old session context