Blame SOURCES/gnutls-3.3.8-fips-rnd-regr.patch

873a72
diff --git a/lib/random.h b/lib/random.h
873a72
index 370a2f9..59e3f3c 100644
873a72
--- a/lib/random.h
873a72
+++ b/lib/random.h
873a72
@@ -50,7 +50,10 @@ int _gnutls_rnd_init(void);
873a72
 
873a72
 inline static int _gnutls_rnd_check(void)
873a72
 {
873a72
-       return _gnutls_rnd_ops.check(gnutls_rnd_ctx);
873a72
+	if (_gnutls_rnd_ops.check)
873a72
+		return _gnutls_rnd_ops.check(gnutls_rnd_ctx);
873a72
+	else
873a72
+		return 0;
873a72
 }
873a72
 
873a72
 #ifndef _WIN32