summaryrefslogtreecommitdiff
path: root/sshconnect1.c
diff options
context:
space:
mode:
authormouring <mouring>2001-02-15 02:36:46 +0000
committermouring <mouring>2001-02-15 02:36:46 +0000
commit96dc654c680a97c30ec413ce966f624457a00e59 (patch)
tree714e5f1b91886528ed585956e8be46d9a764c899 /sshconnect1.c
parentb818b7d75c52558088287de4ca2ecb5010e60359 (diff)
downloadopenssh-96dc654c680a97c30ec413ce966f624457a00e59.tar.gz
- markus@cvs.openbsd.org 2001/02/12 12:45:06
[sshconnect1.c] fix xmalloc(0), ok dugsong@
Diffstat (limited to 'sshconnect1.c')
-rw-r--r--sshconnect1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect1.c b/sshconnect1.c
index 9d6ab3a6..c82375a3 100644
--- a/sshconnect1.c
+++ b/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);