From: "cron2 (Code Review)" Date: Tue, 31 Mar 2026 17:32:26 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <26f57b03905241a0d412f07965fa7f61969010df-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="3nkt1nq9oyo="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: ssl: Avoid sign-compare warning in should_trigger_renegotiation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --3nkt1nq9oyo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change by flichtenheld. ( http://gerrit.o= penvpn.net/c/openvpn/+/1526?usp=3Demail ) Change subject: ssl: Avoid sign-compare warning in should_trigger_renegotia= tion ...................................................................... Patch Set 7: Code-Review-1 Copied votes on follow-up patch sets have been updated: * Code-Review-1 has been copied to patch set 8 (copy condition: "changekind= :NO_CHANGE OR changekind:TRIVIAL_REBASE OR is:MIN"). (1 comment) File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/1526/comment/6043bf12_8e71cece?usp=3D= email : PS7, Line 2927: if (session->opt->renegotiate_bytes > 0 && ks->n_bytes = >=3D (counter_type)session->opt->renegotiate_bytes) I think we should look into making `session->opt->renegotiate_bytes` and `.= ..packets` an `uint64_t` and initialize as `0` (not -1). Saves on the cas= t, adds 3 more lines to the patch... not sure if the end result is really = nicer, but it might worth looking at it. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1526?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I701452496bb47c58b9728b08104dd5cb7823a94f Gerrit-Change-Number: 1526 Gerrit-PatchSet: 7 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 31 Mar 2026 17:32:26 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --3nkt1nq9oyo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos.

Patch set 7:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/ssl.c:

    • Patch Set #7,= Line 2927: if (ses= sion->opt->renegotiate_bytes > 0 && ks->n_bytes >=3D= (counter_type)session->opt->renegotiate_bytes)

      I think we= should look into making `session->opt->renegotiate_bytes` and `...pa= ckets` an `uint64_t` and initialize as `0` (not -1). Saves on the cast, a= dds 3 more lines to the patch... not sure if the end result is really nice= r, but it might worth looking at it.

To view, vis= it chang= e 1526. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I701452496bb47c58b9728b08104= dd5cb7823a94f
Gerrit-Change-Number: 1526
Gerrit-PatchSet: 7
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 31 Mar 2026 17:32:26= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --3nkt1nq9oyo=--