- More porting to FreeBSD and Solaris.
[tinc] / src / protocol.c
index 735a14c..11ce65f 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.65 2000/11/22 20:25:27 guus Exp $
+    $Id: protocol.c,v 1.28.4.66 2000/11/22 22:05:37 guus Exp $
 */
 
 #include "config.h"
@@ -846,7 +846,7 @@ cp
 
   /* Check if somebody tries to add ourself */
 
-  if(!strcmp(new->name, myself->name))
+  if(!strcmp(name, myself->name))
     {
       syslog(LOG_ERR, _("Warning: got ADD_HOST from %s (%s) for ourself, restarting"), cl->name, cl->hostname);
       sighup = 1;