- fixed memleak in sha1

This commit is contained in:
Martin Willi
2005-11-22 07:50:19 +00:00
parent 781fadcc33
commit 2f85618126
3 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -34,11 +34,11 @@ hasher_t *hasher_create(hash_algorithm_t hash_algorithm)
{
switch (hash_algorithm)
{
case SHA1:
case HASH_SHA1:
{
return (hasher_t*)hasher_sha1_create();
}
case MD5:
case HASH_MD5:
default:
return NULL;
}