From c53b6b907ce7ccaf720777c18eed3eea46807bb7 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 26 Oct 2005 16:59:16 +0000 Subject: resolved the infinite loop on exit (thanks giga for the hint). I resolved a memory alloc problem into hmac_init (same kind that the one of md5_init). It's still saying there is a memory corruption. Since the memory corruption happens before it is found (in malloc()), I'll have to run valgrind to locate it. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@46 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 c4e0f367..f6abb3bb 100644 --- a/libssh/wrapper.c +++ b/libssh/wrapper.c @@ -253,7 +253,7 @@ void md5_final(unsigned char *md,MD5CTX c){ HMACCTX hmac_init(const void *key, int len,int type){ HMACCTX ctx; - ctx=malloc(sizeof(HMAC_CTX)); + ctx=malloc(sizeof(*ctx)); #ifndef OLD_CRYPTO HMAC_CTX_init(ctx); // openssl 0.9.7 requires it. #endif -- cgit