From: Guus Sliepen Date: Sat, 20 Oct 2007 11:21:44 +0000 (+0000) Subject: Prevent double free() of a used challenge nonce. X-Git-Tag: import-tinc-1.1~619 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=269892f70bf357de6ad66ca89daa34b225ee9e37;p=meshlink Prevent double free() of a used challenge nonce. --- diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 46bb6e64..0471932a 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -335,6 +335,7 @@ bool chal_reply_h(connection_t *c, char *request) { */ free(c->hischallenge); + c->hischallenge = NULL; c->allow_request = ACK; return send_ack(c);