]> www.tinc-vpn.org Git - tinc/blobdiff - src/protocol_auth.c
Describe subnet-up/down scripts in documentation.
[tinc] / src / protocol_auth.c
index 214d4dd5ed1fc960fc64853164b6cffeb196581d..05f547f22ac5b8ae2f751b8c2023fc9af3ebe07f 100644 (file)
@@ -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 */