diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-02-12 12:45:07 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-02-12 12:45:07 +0000 |
commit | b4e9d5e44c7303567abf0cf42422556f166057b8 (patch) | |
tree | bf747ec875d071df5bec1e0e4410a2972af318cb /usr.bin | |
parent | 0453414a02ebc4b5fee83c93d0a75b7c4a89ab8f (diff) |
fix xmalloc(0), ok dugsong@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshconnect1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect1.c b/usr.bin/ssh/sshconnect1.c index 9d6ab3a6a32..c82375a3dfb 100644 --- a/usr.bin/ssh/sshconnect1.c +++ b/usr.bin/ssh/sshconnect1.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect1.c,v 1.25 2001/02/08 23:11:43 dugsong Exp $"); +RCSID("$OpenBSD: sshconnect1.c,v 1.26 2001/02/12 12:45:06 markus Exp $"); #include <openssl/bn.h> #include <openssl/evp.h> @@ -57,7 +57,7 @@ ssh1_put_password(char *password) int size; char *padded; - size = roundup(strlen(password), 32); + size = roundup(strlen(password) + 1, 32); padded = xmalloc(size); strlcpy(padded, password, size); packet_put_string(padded, size); |