]> git.meshlink.io Git - meshlink/commit
Allow sptps_force_kex() while a key exchange is in progress
authorGuus Sliepen <guus@meshlink.io>
Thu, 10 Sep 2020 21:13:39 +0000 (23:13 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 10 Sep 2020 21:13:39 +0000 (23:13 +0200)
commit38d695b115920c9fb78b596acde817244d0519a6
tree012c238b146366b156c8ed4d24cc5fe991743eff
parentc4deb6c20dceb73c0ac6baa2eb901434584e6191
Allow sptps_force_kex() while a key exchange is in progress

We should not do anything if we are already exchanging a new key, and
just return true. This change prevents higher layers in MeshLink from
terminating a connection between two nodes if both peers call
sptps_force_kex() at nearly the same time.
src/sptps.c