X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fsptps.c;h=03a1e9aac468fd638d28cea2d4582c42060c8f18;hb=d03dc91e27b31851f87351c03cfc9a43c1b06458;hp=5d0d456297367b687aca430c02b72f91c6d71e66;hpb=fc119fb0096a9221f2cff279b07c886bcd794d28;p=tinc diff --git a/src/sptps.c b/src/sptps.c index 5d0d4562..03a1e9aa 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -319,6 +319,7 @@ static bool receive_sig(sptps_t *s, const char *data, uint16_t len) { char shared[ECDH_SHARED_SIZE]; if(!ecdh_compute_shared(s->ecdh, s->hiskex + 1 + 32, shared)) return false; + s->ecdh = NULL; // Generate key material from shared secret. if(!generate_key_material(s, shared, sizeof shared))