Import Upstream version 1.0.8
This commit is contained in:
parent
77e8278660
commit
6276954b04
21 changed files with 390 additions and 245 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
protocol_auth.c -- handle the meta-protocol, authentication
|
||||
Copyright (C) 1999-2005 Ivo Timmermans,
|
||||
2000-2006 Guus Sliepen <guus@tinc-vpn.org>
|
||||
2000-2007 Guus Sliepen <guus@tinc-vpn.org>
|
||||
|
||||
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
|
||||
|
|
@ -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_auth.c 1452 2006-04-26 13:52:58Z guus $
|
||||
$Id: protocol_auth.c 1508 2007-05-16 14:42:08Z guus $
|
||||
*/
|
||||
|
||||
#include "system.h"
|
||||
|
|
@ -68,9 +68,9 @@ bool id_h(connection_t *c)
|
|||
return false;
|
||||
}
|
||||
|
||||
/* If we set c->name in advance, make sure we are connected to the right host */
|
||||
/* If this is an outgoing connection, make sure we are connected to the right host */
|
||||
|
||||
if(c->name) {
|
||||
if(c->outgoing) {
|
||||
if(strcmp(c->name, name)) {
|
||||
logger(LOG_ERR, _("Peer %s is %s instead of %s"), c->hostname, name,
|
||||
c->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue