Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Possible segfault in rlm_ldap #1951
Comments
spbnick
added a commit
to spbnick/freeradius-server
that referenced
this issue
Mar 29, 2017
|
|
spbnick |
208681c
|
spbnick
referenced
this issue
Mar 29, 2017
Merged
Handle connection error in rlm_ldap_cacheable_groupobj #1952
|
Here are some log fragments that seem to show the issue occurring (server restarting after segfault):
|
alandekok
added a commit
that referenced
this issue
Mar 29, 2017
|
|
spbnick + alandekok |
e49b639
|
alandekok
closed this
in ba385f0
Mar 29, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spbnick commentedMar 28, 2017
Issue type
Defect/Feature description
I'm investigating a segfault in v3.0.12, and found something suspicious in
rlm_ldap_cacheable_groupobj, at line 458:It seems that even if
rlm_ldap_bindcalled byrlm_ldap_searchhas overwritten *pconn with NULL and returnedLDAP_PROC_ERROR,rlm_ldap_cacheable_groupobjwould still return RLM_MODULE_OK.Then it seems possible, that rlm_ldap's
mod_authorizecould hitconndereferencing at line 1635:and crash, which is what seems to be happening in the following backtrace from the customer.
This code appears in v3.0.x, v3.1.x, and v4.0.x branches.
Full backtrace from LLDB or GDB