mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
Reworked the changes for bug #64452
This commit is contained in:
parent
b022e54bd1
commit
638c4b89b7
@ -88,9 +88,6 @@ zip_close(struct zip *za)
|
||||
if (za == NULL)
|
||||
return -1;
|
||||
|
||||
if (za->zp == NULL)
|
||||
return -1;
|
||||
|
||||
if (!_zip_changed(za, &survivors)) {
|
||||
_zip_free(za);
|
||||
return 0;
|
||||
@ -196,7 +193,7 @@ zip_close(struct zip *za)
|
||||
}
|
||||
else {
|
||||
/* copy existing directory entries */
|
||||
if (fseeko(za->zp, za->cdir->entry[i].offset, SEEK_SET) != 0) {
|
||||
if ((NULL == za->zp) || (fseeko(za->zp, za->cdir->entry[i].offset, SEEK_SET) != 0)) {
|
||||
_zip_error_set(&za->error, ZIP_ER_SEEK, errno);
|
||||
error = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user