From bf52d4344cd29ab86c1d5981d2ea4d1717eb2f84 Mon Sep 17 00:00:00 2001
From: Jonathan McDowell <noodles@earth.li>
Date: Mon, 19 Jun 2006 21:41:10 +0000
Subject: [PATCH 1/1] Make failure to load backend fatal. If we can't load a
 dynamic backend, there's no point continuing at present. So exit.

---
 keydb_dynamic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keydb_dynamic.c b/keydb_dynamic.c
index f12889c..68ee449 100644
--- a/keydb_dynamic.c
+++ b/keydb_dynamic.c
@@ -66,12 +66,12 @@ bool load_backend(void)
 
 	handle = dlopen(soname, RTLD_LAZY);
 	if (handle == NULL) {
-		logthing(LOGTHING_ERROR,
+		logthing(LOGTHING_CRITICAL,
 				"Failed to open handle to library '%s': %s",
 				soname, dlerror());
 		free(soname);
 		soname = NULL;
-		return false;
+		exit(EXIT_FAILURE);
 	}
 	free(soname);
 	soname = NULL;
-- 
2.39.5