]> andersk Git - openssh.git/commitdiff
- (stevesk) wrap munmap() with HAVE_MMAP also.
authorstevesk <stevesk>
Sun, 7 Apr 2002 22:36:49 +0000 (22:36 +0000)
committerstevesk <stevesk>
Sun, 7 Apr 2002 22:36:49 +0000 (22:36 +0000)
ChangeLog
monitor_mm.c

index 0581652a3dd9fdcffd7dfa2bb791e937db1b44ba..35673792edd3403667f9f1f5c8cc307d1da03fbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 
index b9ea978a6604c3074163f77b2ae2c740a74f5a5b..3231c8786505faa1079bbc7188b863254744327e 100644 (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
This page took 0.055233 seconds and 5 git commands to generate.