Prevent double free() of a used challenge nonce.
[oweals/tinc.git] / src / protocol_auth.c
index 46bb6e645d897665ee3d100ca779a68340e0b4de..0471932a2c33a51da91658ac88846bc05ad14a7d 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);