summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2011-07-12 21:31:20 +0000
committermatthew <matthew@openbsd.org>2011-07-12 21:31:20 +0000
commit02e4001d1e6a6a2a1f55e872248effd2e65d4113 (patch)
tree9b4d8b586e191ee4786dba08857a2172a47c3374 /lib/libc
parentargument to -t is optional. (diff)
downloadwireguard-openbsd-02e4001d1e6a6a2a1f55e872248effd2e65d4113.tar.xz
wireguard-openbsd-02e4001d1e6a6a2a1f55e872248effd2e65d4113.zip
Don't call munmap(2) if mmap(2) failed.
ok deraadt@, tedu@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/nls/catopen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/nls/catopen.c b/lib/libc/nls/catopen.c
index 425038a8a2d..4efedfa3da0 100644
--- a/lib/libc/nls/catopen.c
+++ b/lib/libc/nls/catopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: catopen.c,v 1.13 2008/06/26 05:42:05 ray Exp $ */
+/* $OpenBSD: catopen.c,v 1.14 2011/07/12 21:31:20 matthew Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -133,7 +133,6 @@ load_msgcat(const char *path)
close (fd);
if (data == MAP_FAILED) {
- munmap(data, (size_t) st.st_size);
return (nl_catd) -1;
}