summaryrefslogtreecommitdiff
path: root/sshconnect1.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-15 02:36:46 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-15 02:36:46 +0000
commit4272ed803ff309f1fdb9c149b9cf083769f53744 (patch)
treeb3ef0921f51107b50e96b11cd1c785ec04df7ba9 /sshconnect1.c
parent646aa60b41c7630fbc4d30811419df3900743302 (diff)
- 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);