X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fsptps.c;h=ff7c4168e0410b3564ceb32e74fce0da780b4f4a;hp=bdbfb89e61d7de3a64579f67b93c0b4582b5b1d9;hb=a5bb6d40fb517aa175510ec179091e4f9ffaf6f6;hpb=1d9dacb1f26971e19463b5501c2410c57f780ecb diff --git a/src/sptps.c b/src/sptps.c index bdbfb89e..ff7c4168 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -576,9 +576,14 @@ bool sptps_stop(sptps_t *s) { // Clean up any resources. ecdh_free(&s->ecdh); free(s->inbuf); + s->inbuf = NULL; free(s->mykex); + s->mykex = NULL; free(s->hiskex); + s->hiskex = NULL; free(s->key); + s->key = NULL; free(s->label); + s->label = NULL; return true; }