Properly setting session context

This commit is contained in:
jmjatlanta 2017-08-03 17:48:11 -05:00
parent 36500348bd
commit a8f4925bbe

View file

@ -896,6 +896,7 @@ int libp2p_secio_handshake(struct SessionContext* local_session, struct RsaPriva
remote_peer->id[remote_peer->id_size] = 0; remote_peer->id[remote_peer->id_size] = 0;
} }
} }
remote_peer->sessionContext = local_session;
} else { } else {
if (remote_peer->sessionContext != local_session) { if (remote_peer->sessionContext != local_session) {
// clean up old session context // clean up old session context