From 8b9e5af0d93069a81ce2ebed9899eedf3b7b184b Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sat, 21 Apr 2012 03:44:24 +0200 Subject: [PATCH] Label control connections for log output as "", not "". --- src/protocol_auth.c | 4 ++++ 1 file changed, 4 insertions(+) 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()); } -- 2.39.5