mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fixed a possible double free in imap extension (Identified by Mateusz Kocielski).
This commit is contained in:
parent
309a56f3f7
commit
2bbcc005c7
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user