From: "flichtenheld (Code Review)" Date: Wed, 18 Feb 2026 11:49:18 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <0d4c7dc03326daa139c769a732a15be84dd91ab5-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="t/wAubWRz94="; 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 --t/wAubWRz94= 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 do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1546?usp=3Demail to review the following change. 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 --- M src/openvpn/ntlm.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/46/1546/1 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: newchange Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I2703f15144661f9cadfc8750884db270f3a5bfc6 Gerrit-Change-Number: 1546 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --t/wAubWRz94= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

ntlm: fix discards 'const' qualifie=
r from pointer target type

Since glibc-2.43:

For ISO C23, the= functions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wc= spbrk, 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 = 9;const' qualifier from pointer target type [-Wdiscarded-qualifiers] 241 | separator =3D strchr(p->up.username, '\\');
= | ^

Change-Id: I2703f15144661f9cadfc8750884d= b270f3a5bfc6
Signed-off-by: Rudi Heitbaum <rudi@...2993...>
---=
M src/openvpn/ntlm.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn r=
efs/changes/46/1546/1
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[12= 8];
char username[128];
- char *separator;
+ const char *separator;
=
bool ntlmv2_enabled =3D (p->auth_method =3D=3D HTTP_AUTH_= NTLM2);


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

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I2703f15144661f9cadfc8750884= db270f3a5bfc6
Gerrit-Change-Number: 1546
Gerrit-PatchSet: 1
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...>
= --t/wAubWRz94=--