Change in openvpn[release/2.6]: 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.1771415352000.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/+/1545?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/45/1545/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/+/1545?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: release/2.6
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1545
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: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1545?usp=email
to look at the new patch set (#2).
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/45/1545/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);
Signature · 13 lines
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1545?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: release/2.6 Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc Gerrit-Change-Number: 1545 Gerrit-PatchSet: 2 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/+/1545?usp=email )
Change subject: auth-pam: fix discards 'const' qualifier from pointer target type
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1545?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: release/2.6
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1545
Gerrit-PatchSet: 2
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:44:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v2 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/+/1545
(cherry picked from commit 7212f49d2f773a4f0d28d1450b9ee0b369385ea5)
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1545
This mail reflects revision 2 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);
cron2 has uploaded a new patch set (#3) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1545?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/45/1545/3
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/+/1545?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: release/2.6
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1545
Gerrit-PatchSet: 3
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/+/1545?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/+/1545?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: release/2.6
Gerrit-Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Gerrit-Change-Number: 1545
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>