]> git.michaelhowe.org Git - packages/o/openafs.git/commit
pam: Fix password torching const-ness
authorAndrew Deason <adeason@sinenomine.net>
Mon, 25 Apr 2011 18:58:34 +0000 (13:58 -0500)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 18:58:50 +0000 (10:58 -0800)
commitef65c2e0822c99591afa2ec08d4c38673bf8c6cc
tree2d383c1b9f806c16060462c91a92492b28d1f995
parentfe2d1b6615a43ad6ba3e0df50e3643b7a9476131
pam: Fix password torching const-ness

In some code branches, the PAM code "torches" a password by zeroing
it. However, it does this through a const pointer which we otherwise
know is not actually const. Make sure we get better type checking by
doing this through a non-const pointer.

Reviewed-on: http://gerrit.openafs.org/4554
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5cd4282758317b24d2f63408ab4c62551bbebc03)

Change-Id: I94b22a31884dc9b184ec094e5cca4b6b0098cb15
Reviewed-on: http://gerrit.openafs.org/6295
Tested-by: Derrick Brashear <shadow@dementix.org>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/pam/afs_auth.c
src/pam/afs_password.c
src/pam/afs_setcred.c