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

scryptenc_print_error.c: add a "default" for safety #391

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gperciva
Copy link
Member

No description provided.

We should never reach that "default", but that doesn't mean that it'll
never happen.
@gperciva
Copy link
Member Author

We should never need this, but there's no harm in adding it.

@gperciva
Copy link
Member Author

FWIW, this was inspired by tarsnap's lib/keyfile/keyfile.c, which includes a default: whenever checking the results of scrypt{enc,dec}_buf().

https://github.com/Tarsnap/tarsnap/blob/master/lib/keyfile/keyfile.c#L199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant