]> git.meshlink.io Git - meshlink/blobdiff - src/protocol.c
- tinc can now act as a switch or a hub too (as opposed to a router only)
[meshlink] / src / protocol.c
index bf54c6a5245289893c88137a3cddfa29ae035c2f..cf5cd6773c3e6aa57f58be0dcae2dfbf6db14149 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: protocol.c,v 1.28.4.91 2001/05/25 11:54:28 guus Exp $
+    $Id: protocol.c,v 1.28.4.92 2001/06/05 16:09:55 guus Exp $
 */
 
 #include "config.h"
@@ -214,6 +214,9 @@ cp
   
   /* Copy string to cl */
   
+  if(cl->name)
+    free(cl->name);
+    
   cl->name = xstrdup(name);
 
   /* Load information about peer */