X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol.c;h=ef2a182654d6e22c5ca355132f271a3665ee5a55;hp=7540e4737983be915ea6f2ecf8abf3b358dc4c61;hb=8e74c5bee48f2ef363193044d5309a65e91c70d8;hpb=c0a3f67a5d66088aaf526f1461986f9e86d5dd1f diff --git a/src/protocol.c b/src/protocol.c index 7540e473..ef2a1826 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -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.115 2001/10/31 12:50:24 guus Exp $ + $Id: protocol.c,v 1.28.4.117 2001/10/31 20:37:54 guus Exp $ */ #include "config.h" @@ -232,11 +232,11 @@ cp syslog(LOG_ERR, _("Peer %s had unknown identity (%s)"), c->hostname, c->name); return -1; } + } - if(read_rsa_public_key(c)) - { - return -1; - } + if(read_rsa_public_key(c)) + { + return -1; } c->allow_request = METAKEY; @@ -983,7 +983,7 @@ cp int send_add_edge(connection_t *c, edge_t *e) { cp - return send_request(c, "%d %s %s %lx %d", ADD_NODE, + return send_request(c, "%d %s %s %lx %d", ADD_EDGE, e->from->name, e->to->name, e->options, e->weight); }