diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2014-02-21 14:58:01 +0100 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2014-02-24 12:03:49 +0100 |
| commit | caf1770905e81b95fbe7f3e9125f24719368c3e9 (patch) | |
| tree | d9f8ae0325fc4fa3615a2e9ff049f46b851edb86 /src/libcharon/plugins/sql/sql_logger.c | |
| parent | a21d4096e56c81f1d71b5d891a85069ff6c1cb4d (diff) | |
| download | strongswan-caf1770905e81b95fbe7f3e9125f24719368c3e9.tar.bz2 strongswan-caf1770905e81b95fbe7f3e9125f24719368c3e9.tar.xz | |
settings: Use dirname(3) correctly
dirname(3) may return a pointer to a statically allocated buffer.
So freeing the returned value can result to undefined behavior. This was
noticed on FreeBSD where it caused very strange crashes.
It is also not thread-safe, which will be addressed later.
Diffstat (limited to 'src/libcharon/plugins/sql/sql_logger.c')
0 files changed, 0 insertions, 0 deletions
