diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-14 20:38:30 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-31 08:00:00 +0000 |
commit | 00fd271cfc3c338a2419507f46c8244a8d52a33f (patch) | |
tree | db4200de48ab73a854ad3ca41b64af4a0b3f936f /modules | |
parent | 4c409f11517b815c615b5c0ceddf451bd1cd844a (diff) | |
download | pam-00fd271cfc3c338a2419507f46c8244a8d52a33f.tar.gz pam-00fd271cfc3c338a2419507f46c8244a8d52a33f.tar.bz2 pam-00fd271cfc3c338a2419507f46c8244a8d52a33f.zip |
pam_filter: support very long arguments
The return value of strlen has to be stored in size_t for future
support of arbitrarily long configuration file lines.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_filter/pam_filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_filter/pam_filter.c b/modules/pam_filter/pam_filter.c index 211d88cd..4f3f222e 100644 --- a/modules/pam_filter/pam_filter.c +++ b/modules/pam_filter/pam_filter.c @@ -97,7 +97,8 @@ static int process_args(pam_handle_t *pamh char *p; const char *user = NULL; const void *tmp; - int i,size, retval; + int i, retval; + size_t size; *filtername = *++argv; if (ctrl & FILTER_DEBUG) { |