From: "cron2 (Code Review)" Date: Thu, 19 Feb 2026 10:00:40 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="bcod3V74nvs="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: 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 --bcod3V74nvs= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1543?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 --- M src/plugins/auth-pam/utils.c 1 file changed, 1 insertion(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1543/2 diff --git a/src/plugins/auth-pam/utils.c b/src/plugins/auth-pam/utils.c index d7b544a..a4d2d0b 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/+/1543?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: master Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc Gerrit-Change-Number: 1543 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --bcod3V74nvs= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 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...>
---
M s= rc/plugins/auth-pam/utils.c
1 file changed, 1 insertion(+), 2 deletions(= -)

git pull ssh://gerrit.openvpn.net:29418/openv=
pn refs/changes/43/1543/2
diff --git a/src/plugins/auth-pam/utils.c=
 b/src/plugins/auth-pam/utils.c
index d7b544a..a4d2d0b 1006= 44
--- a/src/plugins/auth-pam/utils.c
+++ b= /src/plugins/auth-pam/utils.c
@@ -66,12 +66,11 @@ /* state: all parameters are valid */
<= br> const char *searching =3D tosearch;
- char *scratch;

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

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

To vi= ew, visit change 1543. To unsubscribe, or for help writing mail filters, visit = settings.

=
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I632368451923116e0a169ddb5b6= e86a8f8486afc
Gerrit-Change-Number: 1543
Gerrit-PatchSet: 2
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>
= --bcod3V74nvs=--