aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ChangeLog5
-rw-r--r--util/memory.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 5e69e7cb4..c91c3d9d0 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-27 Werner Koch <[email protected]>
+
+ * memory.c (out_of_core): Print an explanation on reasons why
+ secret memory can get exhausted.
+
2001-04-23 Werner Koch <[email protected]>
* http.c (http_wait_response): Implement new flag to inhibit the
diff --git a/util/memory.c b/util/memory.c
index ef9a315dc..0f2d8e12d 100644
--- a/util/memory.c
+++ b/util/memory.c
@@ -383,9 +383,14 @@ m_dump_table( const char *prefix )
static void
out_of_core(size_t n, int secure)
{
- log_fatal("out of %s memory while allocating %u bytes\n",
- secure? "secure":"" ,(unsigned)n );
-
+ log_error ("out of %s memory while allocating %u bytes\n",
+ secure? "secure":"" ,(unsigned)n );
+ if (secure) {
+ /*secmem_dump_stats ();*/
+ log_info ("(this may be caused by too many secret keys used "
+ "simultaneously or due to excessive large key sizes)\n");
+ }
+ exit (2);
}
/****************