From: "cron2 (Code Review)" Date: Thu, 19 Feb 2026 10:00:38 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <4a5c6bf112c027a81c37ae5ec61799f21babd3ad-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="YvLNDlzmHGg="; 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: flichtenheld , plaisthos Cc: openvpn-devel --YvLNDlzmHGg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1545?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 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 Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543 Message-Id: <20260218214712.27119-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 728.html Signed-off-by: Gert Doering (cherry picked from commit eeaedd13628e27225c8893c2d8bdf5381fc33ba9) --- 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/3 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: newpatchset Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc Gerrit-Change-Number: 1545 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --YvLNDlzmHGg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #3 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2

auth-pam: fix discards 'const&#=
39; qualifier from pointer target type

strstr now returns const char= *.

Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Signed-of= f-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Gert Doering = <gert@...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn= /+/1543
Message-Id: <20260218214712.27119-1-gert@...1296...>
UR= L: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg3572= 8.html
Signed-off-by: Gert Doering <gert@...1296...>
(cherry pi= cked from commit eeaedd13628e27225c8893c2d8bdf5381fc33ba9)
---
M src/= plugins/auth-pam/utils.c
1 file changed, 1 insertion(+), 2 deletions(-)<= br>
git pull ssh://gerrit.openvpn.net:29418/openvpn =
refs/changes/45/1545/3
diff --git a/src/plugins/auth-pam/utils.c b/=
src/plugins/auth-pam/utils.c
index 97befd6..bd5c382 100644<= /span>
--- a/src/plugins/auth-pam/utils.c
+++ b/sr= c/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 ch= ange 1545. To unsubscribe, 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: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --YvLNDlzmHGg=--