Check-in Number:
|
4399 | |
Date: |
2004-Feb-04 07:24:28 (local)
2004-Feb-04 06:24:28 (UTC) |
User: | rse |
Branch: | |
Comment: |
Fixed filedescriptor leak in the PRNG sub-API.
Submitted by: Guerry Semones <guerry@tsunamiresearch.com> |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/uuid/ChangeLog 1.33 -> 1.34
--- ChangeLog 2004/01/27 19:14:42 1.33
+++ ChangeLog 2004/02/04 06:24:28 1.34
@@ -13,6 +13,9 @@
Changes between 0.9.4 and 0.9.5 (19-Jan-2004 to xx-Jan-2004)
+ o Fixed filedescriptor leak in the PRNG sub-API.
+ [Guerry Semones <guerry@tsunamiresearch.com>]
+
o Upgraded build environment to GNU libtool 1.5.2.
[Ralf S. Engelschall]
|
|
ossp-pkg/uuid/uuid_prng.c 1.2 -> 1.3
--- uuid_prng.c 2004/01/18 19:22:54 1.2
+++ uuid_prng.c 2004/02/04 06:24:28 1.3
@@ -124,6 +124,10 @@
if (prng == NULL)
return PRNG_RC_ARG;
+ /* close PRNG device */
+ if (prng->devfd != -1)
+ close(prng->devfd);
+
/* free object */
free(prng);
|
|