summaryrefslogtreecommitdiffstats
path: root/engines/afalg
diff options
context:
space:
mode:
authorBaptiste Jonglez <git@bitsofnetworks.org>2017-10-30 11:38:09 +0100
committerRichard Levitte <levitte@openssl.org>2017-10-31 11:22:06 +0100
commit0d9fece7d43d2a5aa4f40cbc4231953522f88c74 (patch)
tree35e5965242e52c2254ddc300bb190f6578bf940a /engines/afalg
parenta0c262644eab897b51faf1fa013008052c3754c2 (diff)
afalg: Fix kernel version check
The check should reject kernel versions < 4.1.0, not <= 4.1.0. The issue was spotted on OpenSUSE 42.1 Leap, since its linux/version.h header advertises 4.1.0. CLA: trivial Fixes: 7f458a48 ("ALG: Add AFALG engine") Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4618)
Diffstat (limited to 'engines/afalg')
-rw-r--r--engines/afalg/e_afalg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c
index 4f335809d5..20ac978846 100644
--- a/engines/afalg/e_afalg.c
+++ b/engines/afalg/e_afalg.c
@@ -24,7 +24,7 @@
#define K_MAJ 4
#define K_MIN1 1
#define K_MIN2 0
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \
+#if LINUX_VERSION_CODE < KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \
!defined(AF_ALG)
# ifndef PEDANTIC
# warning "AFALG ENGINE requires Kernel Headers >= 4.1.0"