diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-08-04 14:43:26 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-08-17 11:19:32 +0200 |
commit | b410d7f8ff39001a3fefa5bebd08de3c295f5c9c (patch) | |
tree | d64ec3546ca3ae632de2db70691b1afbaa3c9694 /src/libcharon/sa/eap/eap_method.c | |
parent | cec1fe8c7d426cadb892730ec338cd5d3107d780 (diff) | |
download | strongswan-b410d7f8ff39001a3fefa5bebd08de3c295f5c9c.tar.bz2 strongswan-b410d7f8ff39001a3fefa5bebd08de3c295f5c9c.tar.xz |
utils: Don't use directory enumerator to close open FDs in closefrom()
Calling malloc() after fork() is potentially unsafe, so we should avoid
it if possible. opendir() will still require an allocation but that's
less than the variant using the enumerator wrapper, thus, decreasing
the conflict potential. This way we can also avoid closing the
FD for the enumerated directory itself.
References #990.
Diffstat (limited to 'src/libcharon/sa/eap/eap_method.c')
0 files changed, 0 insertions, 0 deletions