From: Sven-Haegar Koch Date: Sat, 21 Apr 2012 01:44:24 +0000 (+0200) Subject: Label control connections for log output as "", not "". X-Git-Tag: release-1.1pre3~125 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=8b9e5af0d93069a81ce2ebed9899eedf3b7b184b;p=tinc Label control connections for log output as "", not "". --- diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 406ec4f9..287681b5 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -72,6 +72,10 @@ bool id_h(connection_t *c, char *request) { c->status.control = true; c->allow_request = CONTROL; c->last_ping_time = time(NULL) + 3600; + + free(c->name); + c->name = xstrdup(""); + return send_request(c, "%d %d %d", ACK, TINC_CTL_VERSION_CURRENT, getpid()); }