From bef09f8848f60a2adfac7ef4a522c83fe184a854 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 26 Oct 2005 15:29:17 +0000 Subject: Phillip Vandry has seen another bug into r42 : - MD5CTX c=malloc(sizeof(MD5CTX)); + MD5CTX c=malloc(sizeof(*c)); git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@45 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/wrapper.c') diff --git a/libssh/wrapper.c b/libssh/wrapper.c index 92a25a90..c4e0f367 100644 --- a/libssh/wrapper.c +++ b/libssh/wrapper.c @@ -239,7 +239,7 @@ void sha1(unsigned char *digest,int len,unsigned char *hash){ } MD5CTX md5_init(){ - MD5CTX c=malloc(sizeof(MD5CTX)); + MD5CTX c=malloc(sizeof(c)); MD5_Init(c); return c; } -- cgit