From: Tobias Brunner Date: Thu, 11 Nov 2010 11:52:48 +0000 (+0100) Subject: Avoid calling globfree twice on failure. X-Git-Tag: 4.5.1~462 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413d8fe0e30f5eede9d3b936c2d606776eca104f;p=thirdparty%2Fstrongswan.git Avoid calling globfree twice on failure. --- diff --git a/src/libcharon/plugins/stroke/stroke_cred.c b/src/libcharon/plugins/stroke/stroke_cred.c index 91e71f1f45..f4616a2502 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 {