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: <536d9db961e524ac5b9230443798f890d1c0354f-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="GmJOOlGERPs="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[release/2.6]: auth-pam: 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 --GmJOOlGERPs= 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/+/1545?usp=3Demail to look at the new patch set (#2). Change subject: auth-pam: fix discards 'const' qualifier from pointer targe= t type ...................................................................... auth-pam: fix discards 'const' qualifier from pointer target type strstr now returns const char*. Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc Signed-off-by: Frank Lichtenheld (cherry picked from commit 7212f49d2f773a4f0d28d1450b9ee0b369385ea5) --- M src/plugins/auth-pam/utils.c 1 file changed, 1 insertion(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/1545/2 diff --git a/src/plugins/auth-pam/utils.c b/src/plugins/auth-pam/utils.c index 97befd6..bd5c382 100644 --- a/src/plugins/auth-pam/utils.c +++ b/src/plugins/auth-pam/utils.c @@ -66,12 +66,11 @@ /* state: all parameters are valid */ const char *searching =3D tosearch; - char *scratch; char temp[templen+1]; temp[0] =3D 0; - scratch =3D strstr(searching, searchfor); + const char *scratch =3D strstr(searching, searchfor); if (!scratch) { return strdup(tosearch); --=20 To view, visit http://gerrit.openvpn.net/c/openvpn/+/1545?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: I632368451923116e0a169ddb5b6e86a8f8486afc Gerrit-Change-Number: 1545 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --GmJOOlGERPs= 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

auth-pam: fix discards 'const' qualifier=
 from pointer target type

strstr now returns const char*.

Cha= nge-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Signed-off-by: Frank L= ichtenheld <frank@...2641...>
(cherry picked from commit 7212f49d2= f773a4f0d28d1450b9ee0b369385ea5)
---
M src/plugins/auth-pam/utils.c1 file changed, 1 insertion(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/1545/2
<=
span>diff --git a/src/plugins/auth-pam/utils.c b/src/plugins/auth-pam/utils=
.c
index 97befd6..bd5c382 100644
--- a/src/= plugins/auth-pam/utils.c
+++ b/src/plugins/auth-pam/utils.c=
@@ -66,12 +66,11 @@
/* state: all par= ameters are valid */

const char *sea= rching =3D tosearch;
- = char *scratch;

char temp[templen+= 1];
temp[0] =3D 0;

- scratch =3D strstr(searching, searc= hfor);
+ const cha= r *scratch =3D strstr(searching, searchfor);
if (!scra= tch)
{
return strdup(tosearch= );

To view, visit change 1545. To unsubscri= be, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I632368451923116e0a169ddb5b6= e86a8f8486afc
Gerrit-Change-Number: 1545
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...>
= --GmJOOlGERPs=--