summaryrefslogtreecommitdiff
path: root/auth-pam.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-06-08 00:10:59 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-06-08 00:51:18 +1000
commitfc0340f7c4ee29bfb12bd1de9f99defa797e16b4 (patch)
tree631f75ed4e2c6aa2707b2f0f7d2ddab2a3e96856 /auth-pam.c
parent4b7dd22b02b64b1ededd3c0e98a6e7ae21e31d38 (diff)
Typo fixes in error messages.
Patch from knweiss at gmail.com via github pull req #97 (portable- specific parts).
Diffstat (limited to 'auth-pam.c')
-rw-r--r--auth-pam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth-pam.c b/auth-pam.c
index c0504fd05..55253e6ab 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -258,7 +258,7 @@ static char **
258pam_getenvlist(pam_handle_t *pamh) 258pam_getenvlist(pam_handle_t *pamh)
259{ 259{
260 /* 260 /*
261 * XXX - If necessary, we can still support envrionment passing 261 * XXX - If necessary, we can still support environment passing
262 * for platforms without pam_getenvlist by searching for known 262 * for platforms without pam_getenvlist by searching for known
263 * env vars (e.g. KRB5CCNAME) from the PAM environment. 263 * env vars (e.g. KRB5CCNAME) from the PAM environment.
264 */ 264 */
@@ -541,7 +541,7 @@ sshpam_thread(void *ctxtp)
541 for (i = 0; environ[i] != NULL; i++) { 541 for (i = 0; environ[i] != NULL; i++) {
542 /* Count */ 542 /* Count */
543 if (i > INT_MAX) 543 if (i > INT_MAX)
544 fatal("%s: too many enviornment strings", __func__); 544 fatal("%s: too many environment strings", __func__);
545 } 545 }
546 if ((r = sshbuf_put_u32(buffer, i)) != 0) 546 if ((r = sshbuf_put_u32(buffer, i)) != 0)
547 fatal("%s: buffer error: %s", __func__, ssh_err(r)); 547 fatal("%s: buffer error: %s", __func__, ssh_err(r));
@@ -554,7 +554,7 @@ sshpam_thread(void *ctxtp)
554 for (i = 0; env_from_pam != NULL && env_from_pam[i] != NULL; i++) { 554 for (i = 0; env_from_pam != NULL && env_from_pam[i] != NULL; i++) {
555 /* Count */ 555 /* Count */
556 if (i > INT_MAX) 556 if (i > INT_MAX)
557 fatal("%s: too many PAM enviornment strings", __func__); 557 fatal("%s: too many PAM environment strings", __func__);
558 } 558 }
559 if ((r = sshbuf_put_u32(buffer, i)) != 0) 559 if ((r = sshbuf_put_u32(buffer, i)) != 0)
560 fatal("%s: buffer error: %s", __func__, ssh_err(r)); 560 fatal("%s: buffer error: %s", __func__, ssh_err(r));