From: "cron2 (Code Review)" Date: Fri, 11 Aug 2023 16:39:56 +0000 In-Reply-To: References: Reply-To: openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <91f6fe4842765f3348d4bf97814b77f5e68fd36b-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="7Q7xYIpPxwE="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: route: Fix overriding return value of add_route3 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --7Q7xYIpPxwE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/31= 9?usp=3Demail ) Change subject: route: Fix overriding return value of add_route3 ...................................................................... route: Fix overriding return value of add_route3 The return value of add_bypass_routes overwrites the return value of add_route3 instead of combining them. Coverity: CID 1539180 (#1 of 1): Unused value (UNUSED_VALUE) Change-Id: I78f92f363fe203af5661c6958b2417ea30f7055c Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Message-Id: <60951251cdb2f39b20cfc86130c2dc0570ba0363-HTML@...2715...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26= 900.html Signed-off-by: Gert Doering --- M src/openvpn/route.c 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/route.c b/src/openvpn/route.c index 90e981e..9212186 100644 --- a/src/openvpn/route.c +++ b/src/openvpn/route.c @@ -1062,7 +1062,7 @@ /* route DHCP/DNS server traffic through original default gate= way */ ret =3D add_bypass_routes(&rl->spec.bypass, rl->rgi.gateway.ad= dr, tt, flags, - &rl->rgi, es, ctx); + &rl->rgi, es, ctx) && ret; if (rl->flags & RG_REROUTE_GW) { -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/319?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I78f92f363fe203af5661c6958b2417ea30f7055c Gerrit-Change-Number: 319 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --7Q7xYIpPxwE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

route: Fix overriding return value of add_rout=
e3

The return value of add_bypass_routes overwrites
the return va= lue of add_route3 instead of combining
them.

Coverity: CID 153918= 0 (#1 of 1): Unused value (UNUSED_VALUE)

Change-Id: I78f92f363fe203a= f5661c6958b2417ea30f7055c
Signed-off-by: Frank Lichtenheld <frank@...493...= 2641...>
Acked-by: Gert Doering <gert@...1296...>
Message-Id= : <60951251cdb2f39b20cfc86130c2dc0570ba0363-HTML@...2715...>
URL: = https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26900.h= tml
Signed-off-by: Gert Doering <gert@...1296...>
---
M src/= openvpn/route.c
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/openvpn/route.c b/src/openvpn/route.c
i= ndex 90e981e..9212186 100644
--- a/src/openvpn/route.c
+++ b/src/openvpn/route.c
@@ -1062,7 +1062,7 @@=

/* route DHCP/DNS server tr= affic through original default gateway */
ret = =3D add_bypass_routes(&rl->spec.bypass, rl->rgi.gateway.addr, tt,= flags,
- = &rl->rgi, es, ctx);
+ &rl-&g= t;rgi, es, ctx) && ret;

= if (rl->flags & RG_REROUTE_GW)
{

To view, visit change 319. To unsubscribe, or = for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I78f92f363fe203af5661c6958b2= 417ea30f7055c
Gerrit-Change-Number: 319
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--7Q7xYIpPxwE=--