aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeradius3/freeradius-fix-openssl-version-check.patch
blob: e694c5180576fec558959c6688e0f28b799b9da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/main/version.c
+++ b/src/main/version.c
@@ -48,7 +48,7 @@
 
 	ssl_linked = SSLeay();
 
-	if (ssl_linked != ssl_built) {
+	if (((ssl_linked >> 8) != (ssl_built >> 8)) || (ssl_linked < ssl_built)) {
 		ERROR("libssl version mismatch.  built: %lx linked: %lx",
 		       (unsigned long) ssl_built,
 		       (unsigned long) ssl_linked);