From: "flichtenheld (Code Review)" Date: Wed, 6 May 2026 21:21:23 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <24d651d77f15cfef166f0c31e3316c6fc6633d55-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Kh2WR3kA5OE="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: multi: Remove useless checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --Kh2WR3kA5OE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1667?usp=3Demail to review the following change. Change subject: multi: Remove useless checks ...................................................................... multi: Remove useless checks If mi is NULL, the previous code lines already segfaulted. Identified by cppcheck. Change-Id: If58bb807842b7b95aeffe6849e7a7344e4925762 Signed-off-by: Frank Lichtenheld --- M src/openvpn/multi.c 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/1667/1 diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index 06e3758..a957fdf 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -3054,8 +3054,8 @@ #ifdef MULTI_DEBUG_EVENT_LOOP printf("POST %s[%d] to=3D%d lo=3D%d/%d w=3D%" PRIi64 "/%ld\n", id(= mi), (int)(mi =3D=3D m->pending), - mi ? mi->context.c2.to_tun.len : -1, mi ? mi->context.c2.to= _link.len : -1, - (mi && mi->context.c2.fragment) ? mi->context.c2.fragment->= outgoing.len : -1, + mi->context.c2.to_tun.len, mi->context.c2.to_link.len, + mi->context.c2.fragment ? mi->context.c2.fragment->outgoing= .len : -1, (int64_t)mi->context.c2.timeval.tv_sec, (long)mi->context.c= 2.timeval.tv_usec); #endif } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1667?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: If58bb807842b7b95aeffe6849e7a7344e4925762 Gerrit-Change-Number: 1667 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --Kh2WR3kA5OE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

multi: Remove useless checks

If mi i= s NULL, the previous code lines already
segfaulted.

Identified by= cppcheck.

Change-Id: If58bb807842b7b95aeffe6849e7a7344e4925762
S= igned-off-by: Frank Lichtenheld <frank@...2641...>
---
M src/op= envpn/multi.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/chang=
es/67/1667/1
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c=

index 06e3758..a957fdf 100644
--- a/src/op= envpn/multi.c
+++ b/src/openvpn/multi.c
@@ = -3054,8 +3054,8 @@

#ifdef MULTI_DEBUG_EV= ENT_LOOP
printf("POST %s[%d] to=3D%d lo=3D%d/= %d w=3D%" PRIi64 "/%ld\n", id(mi), (int)(mi =3D=3D m->pen= ding),
- = mi ? mi->context.c2.to_tun.len : -1, mi ? mi->context.c2.to_link.len = : -1,
- (= mi && mi->context.c2.fragment) ? mi->context.c2.fragment->= outgoing.len : -1,
+ = mi->context.c2.to_tun.len, mi->context.c2.to_link.len,<= /span>
+ mi-&g= t;context.c2.fragment ? mi->context.c2.fragment->outgoing.len : -1,
(int64_t)mi->context.c2.timeval.tv_sec, (= long)mi->context.c2.timeval.tv_usec);
#endif
= }

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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: If58bb807842b7b95aeffe6849e7= a7344e4925762
Gerrit-Change-Number: 1667
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --Kh2WR3kA5OE=--