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/+/2227?usp=email

to review the following change.


Change subject: route: initialize the table of block-local routes
......................................................................

route: initialize the table of block-local routes

add_block_local_item() allocates the routes without clearing them and
left table_id unset, so the routes went to a garbage table. Use 0, the
default table, like the other internal routes.

Change-Id: I1d516b1acee3edc2a69c670d62f49e3cd34d6dc7
Signed-off-by: Razvan Cojocaru <[email protected]>
---
M src/openvpn/route.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/27/2227/1

diff --git a/src/openvpn/route.c b/src/openvpn/route.c
index 4dfdd5f..5b1d012 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -557,6 +557,7 @@
         /* split a route into two smaller blocking routes, and direct them to 
target */
         l2 = ((~gateway->netmask) + 1) >> 1;
         r1->flags = RT_DEFINED;
+        r1->table_id = 0;
         r1->gateway = target;
         r1->network = gateway->addr & gateway->netmask;
         r1->netmask = ~(l2 - 1);

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2227?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: release/2.7
Gerrit-Change-Id: I1d516b1acee3edc2a69c670d62f49e3cd34d6dc7
Gerrit-Change-Number: 2227
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

Reply via email to