chiark / gitweb /
server/keymgmt.c: Replace ad-hoc `die' with an `ABORT'-level warning.
[tripe] / server / keymgmt.c
index 6ee65bcd084f890eeba04d03e63d8942ea62794a..05e010683708a475f2ff3ea47ce4b79bd7d94cbe 100644 (file)
@@ -553,8 +553,10 @@ void km_init(const char *privkr, const char *pubkr, const char *ptag)
 
   for (hh = ghashtab; *hh; hh++) {
     if ((*hh)->hashsz > MAXHASHSZ) {
-      die(EXIT_FAILURE, "INTERNAL ERROR: %s hash length %lu > MAXHASHSZ %d",
-         (*hh)->name, (unsigned long)(*hh)->hashsz, MAXHASHSZ);
+      a_warn("ABORT", "hash-size-too-large", "hash",
+            "%s", (*hh)->name, "size", "%lu", (*hh)->hashsz,
+            "limit", "%d", MAXHASHSZ, A_END);
+      abort();
     }
   }