From: "cron2 (Code Review)" Date: Wed, 8 Oct 2025 12:10:48 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., marco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641..., antonio@...2726... Message-ID: <9a98bbf86e6349bb82a60d6e4413867d738a43df-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="nLU9SBlHuEI="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: PUSH_UPDATE server: check IV_PROTO before sending the message to the ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mrbff Cc: plaisthos , flichtenheld , openvpn-devel --nLU9SBlHuEI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, mrbff, plaisthos. cron2 has posted comments on this change by mrbff. ( http://gerrit.openvpn.= net/c/openvpn/+/1255?usp=3Demail ) Change subject: PUSH_UPDATE server: check IV_PROTO before sending the messa= ge to the client ...................................................................... Patch Set 1: (2 comments) File src/openvpn/push_util.c: http://gerrit.openvpn.net/c/openvpn/+/1255/comment/c4b5cab5_f39d3a8a?usp=3D= email : PS1, Line 199: } this cannot be NULL - but if you doubt your own callers, make it in an `ASS= ERT(mi)`. http://gerrit.openvpn.net/c/openvpn/+/1255/comment/df6efcad_2cdada10?usp=3D= email : PS1, Line 204: msg(M_CLIENT, "ERROR: Peer ID: %u does not support p= ush-update", > I'd remove the "ERROR:" label - this is just an information that we have = unsupported clients connect [=E2=80=A6] For the "I want *this* one client" case, an ERROR is valid, for the "send t= o all" it's a bit excessive ("there are 400 clients connected, only 2 of th= em are new enough to receive this, so 398 error messages"). So maybe movin= g the `msg()` call to `UPD_BY_CID` case in send_push_update()? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1255?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: I7c28da72be11c7efbed3068fbfc65f2959227bec Gerrit-Change-Number: 1255 Gerrit-PatchSet: 1 Gerrit-Owner: mrbff Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: ordex Gerrit-Reviewer: plaisthos Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: mrbff Gerrit-Comment-Date: Wed, 08 Oct 2025 12:10:48 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: ordex --nLU9SBlHuEI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

2 comments:

  • File src/openvpn/push_util.c:

    <= ul style=3D"list-style: none; padding: 0;">
  • Patch Set = #1, Line 199: }

    this cannot be NULL - but if you doubt your own callers, make it in= an `ASSERT(mi)`.

  • Patch Set #1, Line 204:= msg(M_CLIENT, &quo= t;ERROR: Peer ID: %u does not support push-update",

    I'd remove the "ERROR:" label - this is just an informati= on that we have unsupported clients connect [=E2=80=A6]

    Fo= r the "I want *this* one client" case, an ERROR is valid, for the= "send to all" it's a bit excessive ("there are 400 clie= nts connected, only 2 of them are new enough to receive this, so 398 error = messages"). So maybe moving the `msg()` call to `UPD_BY_CID` case in = send_push_update()?

To view, visit change 1255. To un= subscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7c28da72be11c7efbed3068fbfc= 65f2959227bec
Gerrit-Change-Number: 1255
Gerrit-PatchSet: 1
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: ordex <antonio@...2726...&= gt;
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: mrbff <marco@...2726...&g= t;
Gerrit-Comment-Date: Wed, 08 Oct 2025 12:10:48= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: ordex <antonio@...2787...= ...>
= --nLU9SBlHuEI=--