X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.c;h=6fdd2bc4c5e413efba8e178a14a847b53db70c4f;hb=d3f4cf59ca917386e7c6358a98adbe3b8e9ce87a;hp=dd5244860bfea4df1ff31d0f8cb9711b8409f027;hpb=7a6ca7a993e5907497d97fef09e375698dde182f;p=meshlink diff --git a/src/connection.c b/src/connection.c index dd524486..6fdd2bc4 100644 --- a/src/connection.c +++ b/src/connection.c @@ -64,8 +64,10 @@ void free_connection_partially(connection_t *c) { ecdsa_free(&c->ecdsa); rsa_free(&c->rsa); - if(c->hischallenge) + if(c->hischallenge) { free(c->hischallenge); + c->hischallenge = NULL; + } buffer_clear(&c->inbuf); buffer_clear(&c->outbuf);