From: "flichtenheld (Code Review)" Date: Wed, 18 Feb 2026 11:51:43 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <9f4d79591c059cfbed2bca9510ac574f254f719c-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="EX4tHF2uGpE="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[release/2.6]: ntlm: fix discards 'const' qualifier from pointer target type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --EX4tHF2uGpE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1546?usp=3Demail to look at the new patch set (#2). Change subject: ntlm: fix discards 'const' qualifier from pointer target ty= pe ...................................................................... ntlm: fix discards 'const' qualifier from pointer target type Since glibc-2.43: For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type. fixes: src/openvpn/ntlm.c: In function 'ntlm_phase_3': src/openvpn/ntlm.c:241:15: warning: assignment discards 'const' qualifi= er from pointer target type [-Wdiscarded-qualifiers] 241 | separator =3D strchr(p->up.username, '\\'); | ^ Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6 Signed-off-by: Rudi Heitbaum (cherry picked from commit 720c2e97f609bf7bb7e628ddfa7d3e3783afa676) --- M src/openvpn/ntlm.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/1546/2 diff --git a/src/openvpn/ntlm.c b/src/openvpn/ntlm.c index 9191a8b..6da4359 100644 --- a/src/openvpn/ntlm.c +++ b/src/openvpn/ntlm.c @@ -230,7 +230,7 @@ char domain[128]; char username[128]; - char *separator; + const char *separator; bool ntlmv2_enabled =3D (p->auth_method =3D=3D HTTP_AUTH_NTLM2); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1546?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6 Gerrit-Change-Number: 1546 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --EX4tHF2uGpE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld uploaded patch set #2 to this change.

<= p>View C= hange

ntlm: fix discards 'const' qualifier fro=
m pointer target type

Since glibc-2.43:

For ISO C23, the func= tions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wcspbrk= , wcsrchr, wcsstr and wmemchr that return pointers
into their input arra= ys now have definitions as macros that return a
pointer to a const-quali= fied type when the input argument is a pointer
to a const-qualified type= .

fixes:
src/openvpn/ntlm.c: In function 'ntlm_phase_3= 9;:
src/openvpn/ntlm.c:241:15: warning: assignment discards 'con= st' qualifier from pointer target type [-Wdiscarded-qualifiers]
= 241 | separator =3D strchr(p->up.username, '\\');
= | ^

Change-Id: I2703f15144661f9cadfc8750884db270f= 3a5bfc6
Signed-off-by: Rudi Heitbaum <rudi@...2993...>
(cherry = picked from commit 720c2e97f609bf7bb7e628ddfa7d3e3783afa676)
---
M sr= c/openvpn/ntlm.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/chan=
ges/46/1546/2
diff --git a/src/openvpn/ntlm.c b/src/openvpn/ntlm.c<=
/span>
index 9191a8b..6da4359 100644
--- a/src/ope= nvpn/ntlm.c
+++ b/src/openvpn/ntlm.c
@@ -23= 0,7 +230,7 @@

char domain[128];
char username[128];
- char *separator;
+ const char *separator;

bool ntlmv2_enabled =3D (p->auth_method =3D=3D HTTP_AUTH_NTLM2);<= /span>


To view, visit change 1546. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2703f15144661f9cadfc8750884= db270f3a5bfc6
Gerrit-Change-Number: 1546
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
= --EX4tHF2uGpE=--