diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sshconnect1.c | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -3,6 +3,10 @@ | |||
3 | problems on Solaris-derived PAMs. | 3 | problems on Solaris-derived PAMs. |
4 | - (djm) Clean up PAM namespace. Suggested by Darren Moffat | 4 | - (djm) Clean up PAM namespace. Suggested by Darren Moffat |
5 | <Darren.Moffat@eng.sun.com> | 5 | <Darren.Moffat@eng.sun.com> |
6 | - (bal) Sync w/ OpenSSH for new release | ||
7 | - markus@cvs.openbsd.org 2001/02/12 12:45:06 | ||
8 | [sshconnect1.c] | ||
9 | fix xmalloc(0), ok dugsong@ | ||
6 | 10 | ||
7 | 20010214 | 11 | 20010214 |
8 | - (djm) Don't try to close PAM session or delete credentials if the | 12 | - (djm) Don't try to close PAM session or delete credentials if the |
@@ -3931,4 +3935,4 @@ | |||
3931 | - Wrote replacements for strlcpy and mkdtemp | 3935 | - Wrote replacements for strlcpy and mkdtemp |
3932 | - Released 1.0pre1 | 3936 | - Released 1.0pre1 |
3933 | 3937 | ||
3934 | $Id: ChangeLog,v 1.761 2001/02/15 00:51:32 djm Exp $ | 3938 | $Id: ChangeLog,v 1.762 2001/02/15 02:36:46 mouring Exp $ |
diff --git a/sshconnect1.c b/sshconnect1.c index 9d6ab3a6a..c82375a3d 100644 --- a/sshconnect1.c +++ b/sshconnect1.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: sshconnect1.c,v 1.25 2001/02/08 23:11:43 dugsong Exp $"); | 16 | RCSID("$OpenBSD: sshconnect1.c,v 1.26 2001/02/12 12:45:06 markus Exp $"); |
17 | 17 | ||
18 | #include <openssl/bn.h> | 18 | #include <openssl/bn.h> |
19 | #include <openssl/evp.h> | 19 | #include <openssl/evp.h> |
@@ -57,7 +57,7 @@ ssh1_put_password(char *password) | |||
57 | int size; | 57 | int size; |
58 | char *padded; | 58 | char *padded; |
59 | 59 | ||
60 | size = roundup(strlen(password), 32); | 60 | size = roundup(strlen(password) + 1, 32); |
61 | padded = xmalloc(size); | 61 | padded = xmalloc(size); |
62 | strlcpy(padded, password, size); | 62 | strlcpy(padded, password, size); |
63 | packet_put_string(padded, size); | 63 | packet_put_string(padded, size); |