summaryrefslogtreecommitdiff
path: root/ext/mcrypt/mcrypt.c
diff options
context:
space:
mode:
authorSriram Natarajan <srinatar@php.net>2009-10-02 00:13:53 +0000
committerSriram Natarajan <srinatar@php.net>2009-10-02 00:13:53 +0000
commit0f57b15e23758b0e1a1bdfe9260b50bcdb9750f2 (patch)
tree9ad1071b515b6e9dd4cb21191260ae0e8729624c /ext/mcrypt/mcrypt.c
parenta71da78442ec6f32ed217a002ece700833f5c1ea (diff)
downloadphp-git-0f57b15e23758b0e1a1bdfe9260b50bcdb9750f2.tar.gz
- Fixed bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes).
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
-rw-r--r--ext/mcrypt/mcrypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index 1a5646eac1..d14809a504 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -780,6 +780,7 @@ PHP_FUNCTION(mcrypt_generic_deinit)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not terminate encryption specifier");
RETURN_FALSE
}
+ pm->init = 0;
RETURN_TRUE
}
/* }}} */