Additional healthy paranoia.
Obtained from: NetBSD git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@300 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
9443f9f3f9
commit
b8dd03287c
|
@ -31,7 +31,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_load.c#20 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_load.c#21 $
|
||||
*/
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
@ -173,8 +173,10 @@ openpam_clear_chains(pam_chain_t *policy[])
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < PAM_NUM_FACILITIES; ++i)
|
||||
for (i = 0; i < PAM_NUM_FACILITIES; ++i) {
|
||||
openpam_destroy_chain(policy[i]);
|
||||
policy[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue