aboutsummaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/secmem.c')
-rw-r--r--util/secmem.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/util/secmem.c b/util/secmem.c
index e9bc05abd..0aa4e9f61 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -217,7 +217,7 @@ void
secmem_init( size_t n )
{
if( !n ) {
- #ifndef __MINGW32__
+ #ifndef HAVE_DOSISH_SYSTEM
uid_t uid;
disable_secmem=1;
@@ -245,8 +245,12 @@ secmem_malloc( size_t size )
MEMBLOCK *mb, *mb2;
int compressed=0;
- if( !pool_okay )
- log_bug("secmem not initialized\n");
+ if( !pool_okay ) {
+ log_info(
+ _("operation is not possible without initialized secure memory\n"));
+ log_info(_("(you may have used the wrong program for this task)\n"));
+ exit(2);
+ }
if( show_warning && !suspend_warning ) {
show_warning = 0;
print_warn();