From cf0a9e631b838f1e0aca1a5626fdea4d2802cb18 Mon Sep 17 00:00:00 2001 From: Tomas Mraz <tmraz@fedoraproject.org> Date: Mon, 24 Feb 2020 19:01:11 +0100 Subject: misc_conv: Use PAM_MAX_RESP_SIZE to limit the length of the input --- libpam_misc/misc_conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpam_misc') diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c index be53f343..e29ce59e 100644 --- a/libpam_misc/misc_conv.c +++ b/libpam_misc/misc_conv.c @@ -18,7 +18,7 @@ #include <security/pam_appl.h> #include <security/pam_misc.h> -#define INPUTSIZE PAM_MAX_MSG_SIZE /* maximum length of input+1 */ +#define INPUTSIZE PAM_MAX_RESP_SIZE /* maximum length of input+1 */ #define CONV_ECHO_ON 1 /* types of echo state */ #define CONV_ECHO_OFF 0 -- cgit v1.2.3