X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=05f547f22ac5b8ae2f751b8c2023fc9af3ebe07f;hp=214d4dd5ed1fc960fc64853164b6cffeb196581d;hb=dc09f6fe896f5e35fffe8cc2004781b2e1b6fd5a;hpb=7926a156e5b118d06295228e57de0cc9de0433b4 diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 214d4dd5..05f547f2 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -76,8 +76,11 @@ bool id_h(connection_t *c) c->name); return false; } - } else + } else { + if(c->name) + free(c->name); c->name = xstrdup(name); + } /* Check if version matches */