Properly setting session context

yamux
jmjatlanta 2017-08-03 17:48:11 -05:00
parent 36500348bd
commit a8f4925bbe
1 changed files with 1 additions and 0 deletions

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->sessionContext = local_session;
} else {
if (remote_peer->sessionContext != local_session) {
// clean up old session context