diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2010-11-02 17:50:39 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2010-11-02 17:50:39 +0000 |
commit | 2bbcc005c751b0c337e48df2733a0651083b6455 (patch) | |
tree | 3f21e4340a980e63a0ee29f175f96e16ef586af4 /ext/imap | |
parent | 309a56f3f7c5735e09a25e62667be8700d4db7d6 (diff) | |
download | php-git-2bbcc005c751b0c337e48df2733a0651083b6455.tar.gz |
Fixed a possible double free in imap extension (Identified by Mateusz Kocielski).
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/php_imap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 5781eb2e8a..61f48684b4 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1209,10 +1209,12 @@ static void php_imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) if (IMAPG(imap_user)) { efree(IMAPG(imap_user)); + IMAPG(imap_user) = 0; } if (IMAPG(imap_password)) { efree(IMAPG(imap_password)); + IMAPG(imap_password) = 0; } /* local filename, need to perform open_basedir check */ |