aboutsummaryrefslogtreecommitdiff
path: root/lib/libpam/modules/pam_exec/pam_exec.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-03-06 15:42:03 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-03-06 15:42:03 +0000
commitfdd2f2ebdd2d3baf8ce4100194facdb18158a2e7 (patch)
treef81c40704793eaf43cb265886eec87c8255db230 /lib/libpam/modules/pam_exec/pam_exec.c
parent0012b66baf859a5f6177a6a66e1af0b8b7b3d24d (diff)
downloadsrc-fdd2f2ebdd2d3baf8ce4100194facdb18158a2e7.tar.gz
src-fdd2f2ebdd2d3baf8ce4100194facdb18158a2e7.zip
Revert r314777: wrong log, the change was to libpam.
Notes
Notes: svn path=/head/; revision=314779
Diffstat (limited to 'lib/libpam/modules/pam_exec/pam_exec.c')
-rw-r--r--lib/libpam/modules/pam_exec/pam_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_exec/pam_exec.c b/lib/libpam/modules/pam_exec/pam_exec.c
index 3cc1c33854cc..d43d181f31e5 100644
--- a/lib/libpam/modules/pam_exec/pam_exec.c
+++ b/lib/libpam/modules/pam_exec/pam_exec.c
@@ -138,7 +138,7 @@ _pam_exec(pam_handle_t *pamh __unused,
nitems = sizeof(env_items) / sizeof(*env_items);
/* Count PAM return values put in the environment. */
nitems_rv = options->return_prog_exit_status ? PAM_RV_COUNT : 0;
- tmp = reallocarray(envlist, envlen + nitems + 1 + nitems_rv + 1,
+ tmp = realloc(envlist, (envlen + nitems + 1 + nitems_rv + 1) *
sizeof(*envlist));
if (tmp == NULL) {
openpam_free_envlist(envlist);