aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/memory.c')
-rw-r--r--util/memory.c11
1 files changed, 8 insertions, 3 deletions
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);
}
/****************