X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=0471932a2c33a51da91658ac88846bc05ad14a7d;hb=046158a216e78a0412186ec8463157f6bce45d5d;hp=291c4b0176f02a25978924551f9c0d66fb98e0b7;hpb=1b8f8918360b40a2749d40355266ed7dedbe41b5;p=tinc diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 291c4b01..0471932a 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -40,6 +40,8 @@ bool send_id(connection_t *c) { cp(); + gettimeofday(&c->start, NULL); + return send_request(c, "%d %s %d", ID, myself->connection->name, myself->connection->protocol_version); } @@ -333,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);