[svn] GnuPG - r4207 - trunk/util

svn author marcus cvs at cvs.gnupg.org
Sat Jul 29 02:09:24 CEST 2006


Author: marcus
Date: 2006-07-29 02:09:24 +0200 (Sat, 29 Jul 2006)
New Revision: 4207

Modified:
   trunk/util/ChangeLog
   trunk/util/secmem.c
Log:
2006-07-29  Marcus Brinkmann  <marcus at g10code.de>

	* secmem.c (init_pool): Close FD after establishing the mapping.


Modified: trunk/util/ChangeLog
===================================================================
--- trunk/util/ChangeLog	2006-07-28 10:06:44 UTC (rev 4206)
+++ trunk/util/ChangeLog	2006-07-29 00:09:24 UTC (rev 4207)
@@ -1,3 +1,7 @@
+2006-07-29  Marcus Brinkmann  <marcus at g10code.de>
+
+	* secmem.c (init_pool): Close FD after establishing the mapping.
+
 2006-07-20  David Shaw  <dshaw at jabberwocky.com>
 
 	* http.c (send_request): A zero-length proxy is the same as no

Modified: trunk/util/secmem.c
===================================================================
--- trunk/util/secmem.c	2006-07-28 10:06:44 UTC (rev 4206)
+++ trunk/util/secmem.c	2006-07-29 00:09:24 UTC (rev 4207)
@@ -247,6 +247,7 @@
 	else {
 	    pool = mmap( 0, poolsize, PROT_READ|PROT_WRITE,
 				      MAP_PRIVATE, fd, 0);
+	    close (fd);
 	}
     }
 #endif




More information about the Gnupg-commits mailing list