From: "d12fk (Code Review)" Date: Sat, 21 Dec 2024 22:40:34 +0000 In-Reply-To: References: Reply-To: heiko@...515..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., lstipakov@...277... Message-ID: <61369fa05fa93b24f3dd1d45904280c08f044a5f-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="LkfcQgePlxo="; 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 --LkfcQgePlxo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, stipa. 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 4: (5 comments) File src/openvpn/tun.c: http://gerrit.openvpn.net/c/openvpn/+/824/comment/44d589a3_55773eae : PS3, Line 232: strncpynt(dns.domains + dstlen, o->domain_search_lis= t[i], srclen); > Hm, this doesn't appear to work. [=E2=80=A6] Yeah, in this case it's better since remaining buffer is checked before to = fit the terminating zero. strcpy would work as well, but usually raises an = eyebrow with tools. So, adding the missing srclen + 1 for strncpy for the a= ctual fix. http://gerrit.openvpn.net/c/openvpn/+/824/comment/d469bffe_01c87c06 : PS3, Line 1745: /* Empty for _WIN32 and all other unixoid platforms */ > Spurious change that cause uncrustify errors Acknowledged http://gerrit.openvpn.net/c/openvpn/+/824/comment/64d0080e_818b319f : PS3, Line 1771: /* Empty for _WIN32 and all other unixoid platforms */ > Spurious change that causes uncrustify errors Acknowledged File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/824/comment/7cee0941_deaae7b2 : PS3, Line 1333: MsgToEventLog(M_ERR, L"InterfaceIdString: " > Why `L""` here and not `TEXT()`? TEXT() expands to L"" when UNICODE is defined, but will change for consiste= ncy anyway. There's another one at #766, but unrelated to this changeset. W= ill try to remember to ship a followup patch for this later. http://gerrit.openvpn.net/c/openvpn/+/824/comment/da696840_4fc75d6d : PS3, Line 2302: break; > extra "break" Acknowledged -- 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: 4 Gerrit-Owner: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: stipa Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: stipa Gerrit-Comment-Date: Sat, 21 Dec 2024 22:40:34 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: flichtenheld Comment-In-Reply-To: stipa Gerrit-MessageType: comment --LkfcQgePlxo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View C= hange

5 comments:

    =
  • File src/openvpn/tun.c:

    • Patch Set #3, Line 232: strncpynt(dns.domains= + dstlen, o->domain_search_list[i], srclen);

      Hm, = this doesn't appear to work. [=E2=80=A6]

      Yeah, in this case it's be= tter since remaining buffer is checked before to fit the terminating zero. = strcpy would work as well, but usually raises an eyebrow with tools. So, ad= ding the missing srclen + 1 for strncpy for the actual fix.

    • Patch Set #3, Line 1745: /* Empty for _WIN32 and all other unixoid platforms */

      Spurious change that cause uncrustify errors

      Acknowledged

    • Patch Set #3, Line 1771: /* Empty for _WIN32 and all other unixoid platforms */

      Spurious change that causes uncrustify errors

      Acknowledge= d

  • File src/openvp= nserv/interactive.c:

    • Patch Set #3, Line 1333: MsgToEventLog(M_ERR, L"InterfaceIdString: "

      Why `L""` here and not `TEXT()`?

      TEXT() expands to L= "" when UNICODE is defined, but will change for consistency anywa= y. There's another one at #766, but unrelated to this changeset. Will t= ry to remember to ship a followup patch for this later.

    • = Patch Set #3, Line 2302: break;

      extra "break"<= /blockquote>

      = Acknowledged

To view, visit change 824. To unsubscribe= , 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: 4
Gerrit-Owner: d12fk <heiko@...515...>
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: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: stipa <lstipakov@...1663...= .>
Gerrit-Comment-Date: Sat, 21 Dec 2024 22:40:34= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
Comment-In-Reply-To: stipa <lstipakov@...1664...= 7...>
Gerrit-MessageType: comment
--LkfcQgePlxo=--