derick Fri Nov 29 10:57:39 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/mcrypt mcrypt.c
Log:
- Fix memleak (patch by [EMAIL PROTECTED])
#- I don't merge this to HEAD right away, as my current development tree
# has a lot of modifications, of course I did this change there too.
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.77 php4/ext/mcrypt/mcrypt.c:1.77.4.1
--- php4/ext/mcrypt/mcrypt.c:1.77 Wed Jun 26 05:09:35 2002
+++ php4/ext/mcrypt/mcrypt.c Fri Nov 29 10:57:39 2002
@@ -16,7 +16,7 @@
| Derick Rethans <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: mcrypt.c,v 1.77 2002/06/26 09:09:35 derick Exp $ */
+/* $Id: mcrypt.c,v 1.77.4.1 2002/11/29 15:57:39 derick Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1463,6 +1463,7 @@
n = read_bytes;
close(fd);
if (n < size) {
+ efree(iv);
php_error(E_WARNING, "%s(): Could not gather sufficient random
data", get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php