aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-11-11 12:52:48 +0100
committerTobias Brunner <tobias@strongswan.org>2010-12-03 17:38:36 +0100
commit413d8fe0e30f5eede9d3b936c2d606776eca104f (patch)
treecdee6d54ad45745a0e34bc1edf50788d994487dc /src
parent375dacca8e626aa712b2cc31d6213885eed523e4 (diff)
downloadstrongswan-413d8fe0e30f5eede9d3b936c2d606776eca104f.tar.bz2
strongswan-413d8fe0e30f5eede9d3b936c2d606776eca104f.tar.xz
Avoid calling globfree twice on failure.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/stroke/stroke_cred.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c
index 91e71f1f4..f4616a250 100644
--- a/src/libcharon/plugins/stroke/stroke_cred.c
+++ b/src/libcharon/plugins/stroke/stroke_cred.c
@@ -1234,7 +1234,6 @@ static void load_secrets(private_stroke_cred_t *this, char *file, int level,
if (glob(pattern, GLOB_ERR, NULL, &buf) != 0)
{
DBG1(DBG_CFG, "expanding file expression '%s' failed", pattern);
- globfree(&buf);
}
else
{