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
Этот коммит содержится в:
родитель
b719cc0d13
Коммит
bef09f8848
@ -239,7 +239,7 @@ void sha1(unsigned char *digest,int len,unsigned char *hash){
|
|||||||
}
|
}
|
||||||
|
|
||||||
MD5CTX md5_init(){
|
MD5CTX md5_init(){
|
||||||
MD5CTX c=malloc(sizeof(MD5CTX));
|
MD5CTX c=malloc(sizeof(c));
|
||||||
MD5_Init(c);
|
MD5_Init(c);
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user