From: "ordex (Code Review)" Date: Wed, 8 Oct 2025 12:03:01 +0000 In-Reply-To: References: Reply-To: antonio@...2726..., arne-openvpn@...1227..., marco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="XiL0iC6cp30="; 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 --XiL0iC6cp30= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, mrbff, plaisthos. ordex 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: Code-Review-2 (3 comments) File src/openvpn/push_util.c: http://gerrit.openvpn.net/c/openvpn/+/1255/comment/af9bdc8d_7673d872?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 un= supported clients connected and they won't receive the message. maybe something: "PUSH_UPDATE: not sending message to unsupported peer with= ID %u"? http://gerrit.openvpn.net/c/openvpn/+/1255/comment/352256e9_45e6f7bc?usp=3D= email : PS1, Line 205: mi->context.c2.tls_multi ? mi->context.c2.tls_mu= lti->peer_id : UINT32_MAX); you just dereferenced "tls_multi" a few lines above, therefore it must be n= on-NULL at this point. If you believe it can be NULL, this check should happen earlier on. But can= it really happen? I am not sure. http://gerrit.openvpn.net/c/openvpn/+/1255/comment/ac206d3c_e8cbc84e?usp=3D= email : PS1, Line 252: gc_free(&gc); am I wrong or this is totally unrelated? It still seems a valid fix, but please submit it in its own patch. -- 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: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: mrbff Gerrit-Comment-Date: Wed, 08 Oct 2025 12:03:01 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --XiL0iC6cp30= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 1:Code-Review -2=

V= iew Change

3 comments:

  • File src/openvpn/push_util.c:<= /p>

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

      I'd remove the "ERROR:" label - this is just an= information that we have unsupported clients connected and they won't = receive the message.

      maybe something: "PUSH_UPDATE: not sending me= ssage to unsupported peer with ID %u"?

    • P= atch Set #1, Line 205: = mi->context.c2.tls_multi ? mi->context.c2.tls_multi->p= eer_id : UINT32_MAX);

      you just dereferenced "tls_multi"= ; a few lines above, therefore it must be non-NULL at this point.
      If you= believe it can be NULL, this check should happen earlier on. But can it re= ally happen? I am not sure.

    • Patch Set #1, Lin= e 252: gc_f= ree(&gc);

      am I wrong or this is totally unrelated?
      It sti= ll seems a valid fix, but please submit it in its own patch.

    <= /li>

To view, visit change 1255. To unsubscribe, or for help writing mai= l 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: 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:03:01= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --XiL0iC6cp30=--