From: Matt Caswell Date: Fri, 21 Oct 2016 14:41:04 +0000 (+0100) Subject: Fix style issues in HMAC_size() X-Git-Tag: OpenSSL_1_1_1-pre1~3199 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0ee717c938cda00bcb13cac2f7e2b162616254b;p=oweals%2Fopenssl.git Fix style issues in HMAC_size() Based on review feedback. Reviewed-by: Rich Salz --- diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index a2c9dd9845..ffca891db1 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -119,9 +119,8 @@ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len) size_t HMAC_size(const HMAC_CTX *ctx) { int size = EVP_MD_size((ctx)->md); - if (size < 0) - return 0; - return size; + + return (size < 0) ? 0 : size; } HMAC_CTX *HMAC_CTX_new(void)