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

Don't free DH priv_key when DH_generate_key() fails #96

Closed
wants to merge 1 commit into from

Commits on Aug 3, 2018

  1. Don't free DH priv_key when DH_generate_key() fails

    The call to BN_clear_free on dh->priv_key leaves a dangling pointer
    that will be freed again when the caller of dh_gen_key() calls
    DH_free().
    
    Fortunately, AFAIK failrues in DH_generate_key() are very unlikely,
    so this should not be observed in practice.
    Viktor Dukhovni committed Aug 3, 2018
    Configuration menu
    Copy the full SHA
    1de8322 View commit details
    Browse the repository at this point in the history