From: Stefan Metzmacher Date: Wed, 21 Mar 2018 06:33:16 +0000 (+0100) Subject: lib/crypto: avoid 'return void_function();' which isn't portable X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=7ae77db3b29ef08e1f74aa413049b995a598a5dd lib/crypto: avoid 'return void_function();' which isn't portable BUG: https://bugzilla.samba.org/show_bug.cgi?id=13343 Signed-off-by: Stefan Metzmacher Reviewed-by: Björn Jacke --- diff --git a/lib/crypto/aes.c b/lib/crypto/aes.c index d16d715482e5..4ff019af91a3 100644 --- a/lib/crypto/aes.c +++ b/lib/crypto/aes.c @@ -236,18 +236,20 @@ void AES_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key) { if (has_intel_aes_instructions()) { - return AES_encrypt_aesni(in, out, key); + AES_encrypt_aesni(in, out, key); + return; } - return AES_encrypt_rj(in, out, key); + AES_encrypt_rj(in, out, key); } void AES_decrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key) { if (has_intel_aes_instructions()) { - return AES_decrypt_aesni(in, out, key); + AES_decrypt_aesni(in, out, key); + return; } - return AES_decrypt_rj(in, out, key); + AES_decrypt_rj(in, out, key); } #endif /* SAMBA_RIJNDAEL */