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: release-1.1pre1~144 X-Git-Url: http://tinc-vpn.org/git/browse?a=commitdiff_plain;h=269892f70bf357de6ad66ca89daa34b225ee9e37;hp=b0709d2649ebd7ad01d6e24851dcdfc2707d09c5;p=tinc 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);