summaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/global.c b/src/global.c
index 46a12be7..d62c5be1 100644
--- a/src/global.c
+++ b/src/global.c
@@ -644,7 +644,8 @@ gcry_xrealloc( void *a, size_t n )
while ( !(p = gcry_realloc( a, n )) ) {
if( !outofcore_handler
- || !outofcore_handler( outofcore_handler_value, n, 2 ) ) {
+ || !outofcore_handler( outofcore_handler_value, n,
+ gcry_is_secure(a)? 3:2 ) ) {
_gcry_fatal_error(gpg_err_code_from_errno (errno), NULL );
}
}