From: Guus Sliepen Date: Mon, 25 Mar 2002 15:51:58 +0000 (+0000) Subject: Send REQ_KEY only once until ANS_KEY has arrived. X-Git-Tag: release-1.0pre6~12 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=2de5e0eef911b9ff723d562ef9c62d833f3cdc45;hp=a0c1696515fabd2183da7d8d83fd68410d2ec834 Send REQ_KEY only once until ANS_KEY has arrived. --- diff --git a/src/net_packet.c b/src/net_packet.c index dcdd73ca..7216fb5f 100644 --- a/src/net_packet.c +++ b/src/net_packet.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: net_packet.c,v 1.1.2.11 2002/03/18 22:47:20 guus Exp $ + $Id: net_packet.c,v 1.1.2.12 2002/03/25 15:51:58 guus Exp $ */ #include "config.h" @@ -215,6 +215,8 @@ cp if(!n->status.waitingforkey) send_req_key(n->nexthop->connection, myself, n); + n->status.waitingforkey = 1; + return; }