Change in openvpn[master]: auth-pam: fix discards 'const' qualifier from pointer target type
A message that is not in the archive (sent off-list or not yet received): gerrit.1771414879000.I632368451923116e0a169ddb5b6e86a8f8486afc@...2715...
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/+/1543?usp=email
to review the following change.
Change subject: auth-pam: fix discards 'const' qualifier from pointer target type
......................................................................
auth-pam: fix discards 'const' qualifier from pointer target type
strstr now returns const char*.
---
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/1
src/plugins/auth-pam/utils.c +1 -2
@@ -66,12 +66,11 @@/* state: all parameters are valid */ const char *searching = tosearch; -char *scratch;char temp[templen +1 ]; temp[0 ] =0 ; - scratch =strstr (searching, searchfor); +const char *scratch =strstr (searching, searchfor);if (!scratch) {return strdup (tosearch);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1543
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email )
Change subject: auth-pam: fix discards 'const' qualifier from pointer target type
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1543
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 18 Feb 2026 21:46:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 auth-pam: fix discards 'const' qualifier from pointer target type
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
strstr now returns const char*.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/plugins/auth-pam/utils.c +1 -2
@@ -66,12 +66,11 @@/* state: all parameters are valid */ const char *searching = tosearch; -char *scratch;char temp[templen +1 ]; temp[0 ] =0 ; - scratch =strstr (searching, searchfor); +const char *scratch =strstr (searching, searchfor);if (!scratch) {return strdup (tosearch);
[Openvpn-devel] [PATCH applied] Re: auth-pam: fix discards 'const' qualifier from pointer target type
Same thing as Rudi's dns.c/ntlm.c const fixes, just another file that did not come up yet - but our own arch buildbots got updated, and flagged it...
*This* one goes to all 3 branches as well.
Your patch has been applied to the master, release/2.7 and release/2.6 branch.
commit eeaedd13628e27225c8893c2d8bdf5381fc33ba9 (master) commit 2fd42e6d1da93655d97aeb32f549d684728d3fbd (release/2.7) commit 7ec8cbe636fa938587e573de7e74e934b39f090e (release/2.6)
Author: Frank Lichtenheld Date: Wed Feb 18 22:47:06 2026 +0100
auth-pam: fix discards 'const' qualifier from pointer target type
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35728.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: auth-pam: fix discards 'const' qualifier from pointer target type
......................................................................
auth-pam: fix discards 'const' qualifier from pointer target type
strstr now returns const char*.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35728.html
---
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
src/plugins/auth-pam/utils.c +1 -2
@@ -66,12 +66,11 @@/* state: all parameters are valid */ const char *searching = tosearch; -char *scratch;char temp[templen +1 ]; temp[0 ] =0 ; - scratch =strstr (searching, searchfor); +const char *scratch =strstr (searching, searchfor);if (!scratch) {return strdup (tosearch);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1543
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email )
Change subject: auth-pam: fix discards 'const' qualifier from pointer target type
......................................................................
auth-pam: fix discards 'const' qualifier from pointer target type
strstr now returns const char*.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35728.html
---
M src/plugins/auth-pam/utils.c
1 file changed, 1 insertion(+), 2 deletions(-)
src/plugins/auth-pam/utils.c +1 -2
@@ -66,12 +66,11 @@/* state: all parameters are valid */ const char *searching = tosearch; -char *scratch;char temp[templen +1 ]; temp[0 ] =0 ; - scratch =strstr (searching, searchfor); +const char *scratch =strstr (searching, searchfor);if (!scratch) {return strdup (tosearch);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1543?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1543
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>