Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2332?usp=email
to review the following change.
Change subject: init: compare context mode against CM_P2P in do_up()
......................................................................
init: compare context mode against CM_P2P in do_up()
c->mode holds a CM_* value, but do_up() compared it against
MODE_POINT_TO_POINT, an options mode. This only worked because both
are 0.
While at it, drop a duplicate #include "occ.h".
Change-Id: I878ba525232afffa95e6b7c972ae349d6b488a2d
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/init.c
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/32/2332/1
diff --git a/src/openvpn/init.c b/src/openvpn/init.c
index e1052c5..8b64944 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -39,7 +39,6 @@
#include "otime.h"
#include "pool.h"
#include "gremlin.h"
-#include "occ.h"
#include "pkcs11.h"
#include "ps.h"
#include "lladdr.h"
@@ -2363,7 +2362,7 @@
if (!c->c2.do_up_ran
|| (c->c2.tls_multi && c->c2.tls_multi->multi_state ==
CAS_RECONNECT_PENDING))
{
- if (c->mode == MODE_POINT_TO_POINT)
+ if (c->mode == CM_P2P)
{
/* ovpn-dco requires adding the peer now, before any option can be
set,
* but *after* having parsed the pushed peer-id in
do_deferred_options()
@@ -2391,7 +2390,7 @@
}
else
{
- if (c->mode == MODE_POINT_TO_POINT)
+ if (c->mode == CM_P2P)
{
if (!do_deferred_p2p_ncp(c))
{
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2332?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I878ba525232afffa95e6b7c972ae349d6b488a2d
Gerrit-Change-Number: 2332
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel