X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_key.c;h=90df50f2093151d5d8013df85998a841a380b7c7;hp=3d711f901931beaea9e1279c5ea643664b7ea7d6;hb=d134c4542d4e890e1c1007f32b866742319853c5;hpb=856de4c5fe8acd779aa9277d4554e34ff3625e97 diff --git a/src/protocol_key.c b/src/protocol_key.c index 3d711f90..90df50f2 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.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_key.c,v 1.1.4.7 2002/06/21 10:11:19 guus Exp $ + $Id: protocol_key.c,v 1.1.4.8 2002/09/03 20:43:25 guus Exp $ */ #include "config.h" @@ -40,7 +40,6 @@ #include "meta.h" #include "connection.h" #include "node.h" -#include "edge.h" #include "system.h" @@ -96,7 +95,6 @@ cp n->status.validkey = 0; n->status.waitingforkey = 0; - n->sent_seqno = 0; /* Tell the others */ @@ -153,7 +151,7 @@ cp if(to == myself) /* Yes, send our own key back */ { mykeyused = 1; - from->received_seqno = 0; + from->sent_seqno = 0; send_ans_key(c, myself, from); } else @@ -235,7 +233,8 @@ cp from->status.validkey = 1; from->status.waitingforkey = 0; - + from->received_seqno = 0; + /* Check and lookup cipher and digest algorithms */ if(cipher)