X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=8d4b03290b9ecda546bf461dbb8d12d2a705c0cf;hp=214d4dd5ed1fc960fc64853164b6cffeb196581d;hb=df3220a1549f992cbf4a9b6e67c1e67b69896c7d;hpb=7926a156e5b118d06295228e57de0cc9de0433b4 diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 214d4dd5..8d4b0329 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -1,7 +1,7 @@ /* protocol_auth.c -- handle the meta-protocol, authentication - Copyright (C) 1999-2004 Ivo Timmermans , - 2000-2004 Guus Sliepen + Copyright (C) 1999-2005 Ivo Timmermans , + 2000-2005 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 */