Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only return MZ_MEM_ERROR if no other error code was received before. #714

Merged
merged 1 commit into from Jun 11, 2023

Conversation

huven
Copy link
Contributor

@huven huven commented Jun 11, 2023

For example, opening an encrypted file with incorrect password should return MZ_PASSWORD_ERROR (as did 3.x).
The additional "err == MZ_OK" check makes sure that the correct error code is returned.

@nmoinvaz nmoinvaz added the bug Bug label Jun 11, 2023
@nmoinvaz nmoinvaz changed the base branch from master to develop June 11, 2023 16:47
@nmoinvaz nmoinvaz merged commit b4affb4 into zlib-ng:develop Jun 11, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants