aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libssh/wrapper.c2
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;
}