Blame SOURCES/gnutls-3.7.3-disable-config-reload.patch

5dccd1
diff --git a/lib/priority.c b/lib/priority.c
5dccd1
index 9feec47fe2..40511710fd 100644
5dccd1
--- a/lib/priority.c
5dccd1
+++ b/lib/priority.c
5dccd1
@@ -2001,13 +2001,14 @@ char *_gnutls_resolve_priorities(const char* priorities)
118cf7
 		additional++;
118cf7
 	}
118cf7
 
118cf7
-	/* Always try to refresh the cached data, to allow it to be
118cf7
-	 * updated without restarting all applications.
118cf7
-	 */
5dccd1
-	ret = _gnutls_update_system_priorities(false /* defer_system_wide */);
118cf7
-	if (ret < 0) {
118cf7
-		_gnutls_debug_log("failed to update system priorities: %s\n",
118cf7
-				  gnutls_strerror(ret));
5dccd1
+	/* If priority string is not constructed yet, construct and finalize */
5dccd1
+	if (!system_wide_config.priority_string) {
5dccd1
+		ret = _gnutls_update_system_priorities(false
5dccd1
+		                                       /* defer_system_wide */);
5dccd1
+		if (ret < 0) {
5dccd1
+			_gnutls_debug_log("failed to update system priorities: "
5dccd1
+			                  " %s\n", gnutls_strerror(ret));
5dccd1
+		}
5dccd1
 	}
5dccd1
 
118cf7
 	do {