mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 21:00:33 +09:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user