From 91d3b685dcd805ced1453c551ad315eb3173eab1 Mon Sep 17 00:00:00 2001 From: Michal Rokos Date: Fri, 21 Dec 2001 20:10:12 +0000 Subject: * Memory checking --- ossl_hmac.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ossl_hmac.c') diff --git a/ossl_hmac.c b/ossl_hmac.c index b56beb8..c69c7e7 100644 --- a/ossl_hmac.c +++ b/ossl_hmac.c @@ -34,8 +34,8 @@ static void ossl_hmac_free(ossl_hmac *hmacp) { if (hmacp) { - if (hmacp->hmac) - OPENSSL_free(hmacp->hmac); + if (hmacp->hmac) OPENSSL_free(hmacp->hmac); + hmacp->hmac = NULL; free(hmacp); } } @@ -179,13 +179,13 @@ Init_hmac(VALUE module) rb_define_alias(cHMAC, "to_str", "hexhmac"); } -#else +#else /* NO_HMAC is defined */ void Init_hmac(VALUE module) { - rb_warning("HMAC will NOT be avaible: OpenSSL is compiled without HMAC"); + rb_warning("HMAC will NOT be avaible: OpenSSL is compiled without HMAC."); } -#endif +#endif /* NO_HMAC */ -- cgit v1.2.3