summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichele <michele@openbsd.org>2009-12-06 16:12:47 +0000
committermichele <michele@openbsd.org>2009-12-06 16:12:47 +0000
commita14b6151a9756bef3b6a81e7b749ea15fe2c0101 (patch)
treeab7b10f1cadb6898a9232ad46b7297975f15ebaa
parentImprove divert.4 man page. (diff)
downloadwireguard-openbsd-a14b6151a9756bef3b6a81e7b749ea15fe2c0101.tar.xz
wireguard-openbsd-a14b6151a9756bef3b6a81e7b749ea15fe2c0101.zip
During the session's initialization, when playing the passive role, send
the initialization message before the keepalive. This fixes session initialazion failures noticed by Christophe Fillot. ok claudio@
-rw-r--r--usr.sbin/ldpd/neighbor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/neighbor.c b/usr.sbin/ldpd/neighbor.c
index 5daf2c4a184..f892495ee41 100644
--- a/usr.sbin/ldpd/neighbor.c
+++ b/usr.sbin/ldpd/neighbor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: neighbor.c,v 1.3 2009/08/01 12:47:02 michele Exp $ */
+/* $OpenBSD: neighbor.c,v 1.4 2009/12/06 16:12:47 michele Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -160,8 +160,8 @@ nbr_fsm(struct nbr *nbr, enum nbr_event event)
break;
case NBR_ACT_INIT_SEND:
/* XXX */
- send_keepalive(nbr);
- ret = send_init(nbr);
+ send_init(nbr);
+ ret = send_keepalive(nbr);
break;
case NBR_ACT_KEEPALIVE_SEND:
/* XXX */