diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-26 00:22:57 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-26 00:22:57 +0000 |
commit | a95fd3f8ad53d2ac2fb26558e033bd5180131c77 (patch) | |
tree | d1bfc4531b68ebdedd27a07a88261dd04ef79dc4 /monitor_mm.c | |
parent | 2b3897c3ccbe028c99b1b3b79603845899d5c644 (diff) | |
download | openssh-git-a95fd3f8ad53d2ac2fb26558e033bd5180131c77.tar.gz |
- (bal) added back in error check for mmap(). I screwed up, Pointed
out by stevesk@
Diffstat (limited to 'monitor_mm.c')
-rw-r--r-- | monitor_mm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/monitor_mm.c b/monitor_mm.c index c7662d80..ab4d5c95 100644 --- a/monitor_mm.c +++ b/monitor_mm.c @@ -87,6 +87,8 @@ mm_create(struct mm_master *mmalloc, size_t size) #ifdef HAVE_MMAP_ANON_SHARED address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); + if (address == MAP_FAILED) + fatal("mmap(%lu): %s", (u_long)size, strerror(errno)); #else fatal("%s: UsePrivilegeSeparation=yes and Compression=yes not supported", __func__); |