Properly setting session context
This commit is contained in:
parent
36500348bd
commit
a8f4925bbe
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue