From: "stipa (Code Review)" Date: Tue, 10 Sep 2024 09:17:44 +0000 In-Reply-To: References: Reply-To: lstipakov@...277..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: <4761d3328807b23d3b85ab0955dd6ef651537991-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="dIQxsvFNsJc="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: dco-win: factor out getting dco version info own function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cron2 , plaisthos , flichtenheld , openvpn-devel --dIQxsvFNsJc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, plaisthos. stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/733?usp=3Demail ) Change subject: dco-win: factor out getting dco version info own function ...................................................................... Patch Set 2: (4 comments) File src/openvpn/dco_win.c: http://gerrit.openvpn.net/c/openvpn/+/733/comment/8f07dbeb_507f5019 : PS1, Line 102: msg(D_DCO_DEBUG, "dco data_v3: %d", dco->supports_data_v= 3); > I think keeping the "supports" here (=3D not changing the text) would eas= e understanding of the logs. Acknowledged http://gerrit.openvpn.net/c/openvpn/+/733/comment/3508d8c9_0dd6626f : PS1, Line 474: ZeroMemory(&version, sizeof(version)); > `CLEAR(version)` exists (if you change this line anyway). [=E2=80=A6] Agreed. Will use =3D {0} here and also CLEAN() within get_version() itself = to make sure it zeroes fields and doesn't depend on the caller. http://gerrit.openvpn.net/c/openvpn/+/733/comment/d5b2be96_d092b75d : PS1, Line 481: return BSTR(&out); > technically this does something else if no DCO driver can be found - the = old code returns "N/A", the [=E2=80=A6] Good point, other platforms return "N/A", will bring it back. http://gerrit.openvpn.net/c/openvpn/+/733/comment/e42a0200_3120a0fe : PS1, Line 562: dco_get_version(&version); > see above wrt `CLEAR()` or `=3D {0}` Done -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/733?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: I8e8ddd35bd3cc3334faf7f57118d1892512ae9f7 Gerrit-Change-Number: 733 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 10 Sep 2024 09:17:44 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: cron2 Gerrit-MessageType: comment --dIQxsvFNsJc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld, plaisthos. <= /p>

View C= hange

4 comments:

    =
  • File src/openvpn/dco_win.c:

  • <= /ul>

    To view, visit change 733. To unsubscribe, or for help writing mail filte= rs, visit settings.

    <= div itemscope itemtype=3D"http://schema.org/EmailMessage">
    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I8e8ddd35bd3cc3334faf7f57118= d1892512ae9f7
    Gerrit-Change-Number: 733
    Gerrit-PatchSet: 2
    Gerrit-Owner: stipa <lstipakov@...277...>= ;
    Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
    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: cron2 <gert@...1296...>= ;
    Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
    Gerrit-Comment-Date: Tue, 10 Sep 2024 09:17:44= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: cron2 <gert@...1296...= >
    Gerrit-MessageType: comment
    --dIQxsvFNsJc=--