- (stevesk) wrap munmap() with HAVE_MMAP also.

This commit is contained in:
Kevin Steves 2002-04-07 22:36:49 +00:00
parent 4e0bb524a5
commit 265c9d00c3
2 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- (stevesk) remove configure support for poll.h; it was removed
from sshd.c a long time ago.
- (stevesk) --with-privsep-user; default sshd
- (stevesk) wrap munmap() with HAVE_MMAP also.
20020406
- (djm) Typo in Suse SPEC file. Fix from Carsten Grohmann
@ -8198,4 +8199,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.2038 2002/04/07 19:22:55 stevesk Exp $
$Id: ChangeLog,v 1.2039 2002/04/07 22:36:49 stevesk Exp $

View File

@ -130,8 +130,13 @@ mm_destroy(struct mm_master *mm)
mm_freelist(mm->mmalloc, &mm->rb_free);
mm_freelist(mm->mmalloc, &mm->rb_allocated);
#ifdef HAVE_MMAP
if (munmap(mm->address, mm->size) == -1)
fatal("munmap(%p, %lu)", mm->address, (u_long)mm->size);
#else
fatal("%s: UsePrivilegeSeparation=yes not supported",
__FUNCTION__);
#endif
if (mm->mmalloc == NULL)
xfree(mm);
else