aboutsummaryrefslogtreecommitdiff
path: root/occ.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--occ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/occ.c b/occ.c
index 1add9d0..86bc68c 100644
--- a/occ.c
+++ b/occ.c
@@ -149,7 +149,7 @@ check_send_occ_req_dowork (struct context *c)
{
if (++c->c2.occ_n_tries >= OCC_N_TRIES)
{
- if (c->options.remote_list)
+ if (c->options.ce.remote)
/*
* No OCC_REPLY from peer after repeated attempts.
* Give up.
@@ -369,7 +369,7 @@ process_received_occ_msg (struct context *c)
c->c2.max_send_size_remote,
c->c2.max_recv_size_local);
if (!c->options.fragment
- && c->options.proto == PROTO_UDPv4
+ && c->options.ce.proto == PROTO_UDPv4
&& c->c2.max_send_size_local > TUN_MTU_MIN
&& (c->c2.max_recv_size_remote < c->c2.max_send_size_local
|| c->c2.max_recv_size_local < c->c2.max_send_size_remote))