From: "d12fk (Code Review)" Date: Wed, 12 Mar 2025 04:05:06 +0000 In-Reply-To: References: Reply-To: heiko@...515..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="jciD9TuUjgc="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: dns: support multiple domains without DHCP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: stipa , flichtenheld , plaisthos , openvpn-devel --jciD9TuUjgc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, plaisthos. d12fk has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/824?usp=3Demail ) Change subject: dns: support multiple domains without DHCP ...................................................................... Patch Set 12: (7 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/824/comment/7e7bfac6_b367e51d : PS12, Line 23: > please reference the github issue about WMIC no longer working on Win11 [= =E2=80=A6] Done File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/824/comment/70916549_d4e0161f : PS12, Line 1171: ApplyGpolSettings32() > `(void)` Done http://gerrit.openvpn.net/c/openvpn/+/824/comment/2b36d095_cbfd9faa : PS12, Line 1211: ApplyGpolSettings64() > `(void)` Done http://gerrit.openvpn.net/c/openvpn/+/824/comment/12b0644b_5e2f5cad : PS12, Line 1248: ApplyGpolSettings() > `(void)` Done http://gerrit.openvpn.net/c/openvpn/+/824/comment/2dd35100_49932acc : PS12, Line 1609: * If it doesn't exists, resets to empty, effectively disa= bling it. > typo here ("exists") Done http://gerrit.openvpn.net/c/openvpn/+/824/comment/ea2a7802_1d8a8a94 : PS12, Line 1631: goto out; > my understanding of the code flow is that the `goto out` should be inside= the `if (err !=3D ERROR_FILE [=E2=80=A6] Yeah that is intentional. If there was no SearchList, there will be no Inin= italSearchList created in the first place. http://gerrit.openvpn.net/c/openvpn/+/824/comment/6b364f9b_c7efb34c : PS12, Line 1698: } > in this case ("no InitialSearchList can be found") this whole function wo= uld then fail to do anythin [=E2=80=A6] When we get there something is inconsistent in the registry. The SearchList= is not empty, but we do not have a InitialSearchList to compare to. Storin= g the shorter, but non-empty list is as wrong as leaving it in its current = state, as it is not empty, not can it be reset to the original list. If you rather have the `return` removed and the next branch turned into an = `else if` I can do it, but the SearchList will still be in an undefined sta= te after the modification. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/824?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: Icaffbfa6b2e8efa2bd24a05537cb74b15f4fed96 Gerrit-Change-Number: 824 Gerrit-PatchSet: 12 Gerrit-Owner: d12fk Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Wed, 12 Mar 2025 04:05:06 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: cron2 Gerrit-MessageType: comment --jciD9TuUjgc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View C= hange

7 comments:

    =
  • Commit Message:

    • <= p style=3D"margin-bottom: 4px;">Patch Set #12, Line 23:

      please referen= ce the github issue about WMIC no longer working on Win11 [=E2=80=A6]

      Done<= /p>

  • File src/openvpns= erv/interactive.c:

    • = Patch Set #12, Line 1171: ApplyGpolSettings32()

      `(void)`

      Done

    • Patch Set #12, Line 1211: ApplyGpolSettings64()

      `(void)`

      =

      Done

    • Patch Set #12, Line 1248: ApplyGpolSettings()

      `(void)`

      Done

      Patch Set #12, Line 1609: * If it doesn't exists, resets to empty, effectively disabli= ng it.

      typo here ("exists")

      Done

      Patch Set #12, Line 1631: goto out;

      my understanding of the c= ode flow is that the `goto out` should be inside the `if (err !=3D ERROR_FI= LE [=E2=80=A6]

      Yeah that is intentional. If there was no SearchList, there = will be no IninitalSearchList created in the first place.

    • = Patch Set #12, Line 1698: }

      in this case ("no InitialSearchList= can be found") this whole function would then fail to do anythin [=E2= =80=A6]

      When we get there something is inconsistent in the registry. The Se= archList is not empty, but we do not have a InitialSearchList to compare to= . Storing the shorter, but non-empty list is as wrong as leaving it in its = current state, as it is not empty, not can it be reset to the original list= .

      If you rath= er have the `return` removed and the next branch turned into an `else if` I= can do it, but the SearchList will still be in an undefined state after th= e modification.

To view, visit change 824. To unsubscr= ibe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Icaffbfa6b2e8efa2bd24a05537c= b74b15f4fed96
Gerrit-Change-Number: 824
Gerrit-PatchSet: 12
Gerrit-Owner: d12fk <heiko@...515...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: stipa <lstipakov@...277...= >
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: Wed, 12 Mar 2025 04:05:06= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...= >
Gerrit-MessageType: comment
--jciD9TuUjgc=--