From: "flichtenheld (Code Review)" Date: Wed, 18 Feb 2026 11:49:17 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <2652dfd778c9fcdc1e48ccf79529d13cc6dcafbd-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="QWEk8v0n2ro="; 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 --QWEk8v0n2ro= 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/+/1545?usp=3Demail to review the following change. 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 --- 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/1 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); -- 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: newchange Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc Gerrit-Change-Number: 1545 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --QWEk8v0n2ro= 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

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

strstr now returns const char*.
Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Signed-off-by: Fr= ank Lichtenheld <frank@...2641...>
---
M src/plugins/auth-pam/u= tils.c
1 file changed, 1 insertion(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/15=
45/1
diff --git a/src/plugins/auth-pam/utils.c b/src/plugins/auth-p=
am/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 c= har *searching =3D tosearch;
- char *scratch;

char temp[= templen+1];
temp[0] =3D 0;
- scratch =3D strstr(searchin= g, searchfor);
+ c= onst char *scratch =3D strstr(searching, searchfor);
i= f (!scratch)
{
return strdup(= tosearch);

To view, visit change 1545. To u= nsubscribe, or for help writing mail filters, visit settings.

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