diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 17:00:17 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 17:40:32 +0100 |
commit | 927d0032b865f05679d3cc052bc13cb0e6490283 (patch) | |
tree | 69f782deb79182f26069ff41e9539f17e6e44912 /auth-pam.c | |
parent | d35c65e77ab6a6a95fefa2c852827ba08e507f0b (diff) | |
parent | 810eecd6b2e03770f21e46b5cb8ce8c7fcd46da8 (diff) |
New upstream release (6.9p1).
Diffstat (limited to 'auth-pam.c')
-rw-r--r-- | auth-pam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-pam.c b/auth-pam.c index d789bad7b..d94c8285b 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -738,7 +738,7 @@ sshpam_query(void *ctx, char **name, char **info, | |||
738 | case PAM_PROMPT_ECHO_OFF: | 738 | case PAM_PROMPT_ECHO_OFF: |
739 | *num = 1; | 739 | *num = 1; |
740 | len = plen + mlen + 1; | 740 | len = plen + mlen + 1; |
741 | **prompts = xrealloc(**prompts, 1, len); | 741 | **prompts = xreallocarray(**prompts, 1, len); |
742 | strlcpy(**prompts + plen, msg, len - plen); | 742 | strlcpy(**prompts + plen, msg, len - plen); |
743 | plen += mlen; | 743 | plen += mlen; |
744 | **echo_on = (type == PAM_PROMPT_ECHO_ON); | 744 | **echo_on = (type == PAM_PROMPT_ECHO_ON); |
@@ -748,7 +748,7 @@ sshpam_query(void *ctx, char **name, char **info, | |||
748 | case PAM_TEXT_INFO: | 748 | case PAM_TEXT_INFO: |
749 | /* accumulate messages */ | 749 | /* accumulate messages */ |
750 | len = plen + mlen + 2; | 750 | len = plen + mlen + 2; |
751 | **prompts = xrealloc(**prompts, 1, len); | 751 | **prompts = xreallocarray(**prompts, 1, len); |
752 | strlcpy(**prompts + plen, msg, len - plen); | 752 | strlcpy(**prompts + plen, msg, len - plen); |
753 | plen += mlen; | 753 | plen += mlen; |
754 | strlcat(**prompts + plen, "\n", len - plen); | 754 | strlcat(**prompts + plen, "\n", len - plen); |