diff options
Diffstat (limited to 'util/secmem.c')
-rw-r--r-- | util/secmem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/secmem.c b/util/secmem.c index 2d260a382..91cd3eb99 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -140,7 +140,8 @@ lock_pool( void *p, size_t n ) processes are clogging up the memory. To get this problem out of the way we simply don't try to lock the memory at all. */ - err = EPERM; + errno = EPERM; + err = errno; # else /* !_AIX */ err = plock( DATLOCK ); if( err && errno ) |