Prevent double free() of a used challenge nonce.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 20 Oct 2007 11:21:44 +0000 (11:21 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 20 Oct 2007 11:21:44 +0000 (11:21 +0000)
src/protocol_auth.c

index 46bb6e6..0471932 100644 (file)
@@ -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);