From: "cron2 (Code Review)"
Date: Thu, 19 Feb 2026 10:00:52 +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="sQ+jrqzoELc="; 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
Cc: plaisthos , openvpn-devel
--sQ+jrqzoELc=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/15=
43?usp=3Demail )
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(-)
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: merged
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
--sQ+jrqzoELc=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
cron2 sub=
mitted this change.
View Change
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...>
Acked-by: Gert Doering <gert@...1386...=
296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
Me=
ssage-Id: <20260218214712.27119-1-gert@...1296...>
URL: https://ww=
w.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35728.html
Sig=
ned-off-by: Gert Doering <gert@...1296...>
---
M src/plugins/au=
th-pam/utils.c
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/plugins/auth-pam/utils.c b/src/plugins/auth-pam/utils.c=
index d7b544a..a4d2d0b 100644
--- a/src/pl=
ugins/auth-pam/utils.c
+++ b/src/plugins/auth-pam/utils.c=
span>
@@ -66,12 +66,11 @@
/* state: all param=
eters are valid */
const char *searc=
hing =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 1543. To unsubscri=
be, or for help writing mail filters, visit settings.
Gerrit-MessageType: merged
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>
=
--sQ+jrqzoELc=--