diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-10-26 15:29:17 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-10-26 15:29:17 +0000 |
commit | bef09f8848f60a2adfac7ef4a522c83fe184a854 (patch) | |
tree | 4b5db746b8cc59e64fe89be851d72d0b98fa6085 /libssh | |
parent | b719cc0d13bc85c12fbf484a2e94bf745b7409c3 (diff) | |
download | libssh-bef09f8848f60a2adfac7ef4a522c83fe184a854.tar.gz libssh-bef09f8848f60a2adfac7ef4a522c83fe184a854.tar.xz libssh-bef09f8848f60a2adfac7ef4a522c83fe184a854.zip |
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
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |