aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeradius/freeradius-fix-openssl-version-check.patch
blob: d13ab8356775fa185b77c8bd2c4d023238527a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ru freeradius-server-2.2.4.orig/src/main/version.c freeradius-server-2.2.4/src/main/version.c
--- freeradius-server-2.2.4.orig/src/main/version.c	2014-03-19 19:20:49.000000000 -0200
+++ freeradius-server-2.2.4/src/main/version.c	2014-06-12 10:54:48.173755346 -0300
@@ -54,7 +54,7 @@
 
 	ssl_linked = SSLeay();
 
-	if (ssl_linked != ssl_built) {
+	if (((ssl_linked >> 8) != (ssl_built >> 8)) || (ssl_linked < ssl_built)) {
 		radlog(L_ERR, "libssl version mismatch."
 		       "  Built with: %lx\n  Linked: %lx",
 		       (unsigned long) ssl_built,