X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fdigest.c;h=79db491d67fd1bcc4838494f56f84f247dbb6025;hb=70a1a5594af5d4e6a364186b42ba4e34c676009b;hp=3159e7a39a90fa9388927f675a9ad020b8a9fe75;hpb=86c2990327fdf7ec1197aa73cb2b9a926a734db4;p=tinc diff --git a/src/openssl/digest.c b/src/openssl/digest.c index 3159e7a3..79db491d 100644 --- a/src/openssl/digest.c +++ b/src/openssl/digest.c @@ -1,6 +1,6 @@ /* digest.c -- Digest handling - Copyright (C) 2007 Guus Sliepen + Copyright (C) 2007-2012 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -78,8 +78,7 @@ bool digest_set_key(digest_t *digest, const void *key, size_t len) { } void digest_close(digest_t *digest) { - if(digest->key) - free(digest->key); + free(digest->key); digest->key = NULL; }