Insert client connection data into PAM environment
PATCH v4 1/1 Insert client connection data into PAM environment
From: Paolo Cerrito <[email protected]...>
1) changed again remote lenght, we have to consider only the lenght op ipv6 address into form nnnn:nnnn:nnnn:nnnn:nnnn:ddd.ddd.ddd.ddd not the mask, so we have max lenght of 45 plus terminator.
2) refactored calls to get_env, now we make one call to take ipv6 address, the if it's NULL, we try to get ipv4 address.
--- src/plugins/auth-pam/auth-pam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/auth-pam/auth-pam.c +1 -1
@@ -115,7 +115,7 @@ struct user_pass {char password[128 ];char common_name[128 ];char response[128 ]; -char remote[51 ];//51 as ipv6 form n:n:n:n:n:n:d.d.d.d/mask and terminator+1 +char remote[46 ];//46 as ipv6 form n:n:n:n:n:n:d.d.d.d and + terminator \0 const struct name_value_list *name_value_list; };
Signature · 1 line
2.26.0