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

3.0.x : bug in eapsimlib.c : "free" function called on a talloc'ed chunk #582

Closed
nchaigne opened this issue Apr 11, 2014 · 0 comments
Closed

Comments

@nchaigne
Copy link
Contributor

In src/modules/rlm_eap/libeap/eapsimlib.c, at line 258 (branch 3.0.x) we have:

    /* done with the buffer, free it */
    free(buffer);

This causes a segmentation fault, because allocation was performed through talloc:

buffer = talloc_array(r, uint8_t, hmaclen);

Suggested fix:

    talloc_free(buffer);
alandekok added a commit that referenced this issue Apr 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant