aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/sql/sql_attribute.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-03-03 14:56:17 +0000
committerMartin Willi <martin@strongswan.org>2009-03-03 14:56:17 +0000
commitd9ad73d867e99870a25f4cad47bf50ee0a878821 (patch)
treea783cb7ba612d472a55521e6e094a9dc01fd677b /src/charon/plugins/sql/sql_attribute.c
parent7b2a032d28a73500d2b5bfdd296e834229b73705 (diff)
downloadstrongswan-d9ad73d867e99870a25f4cad47bf50ee0a878821.tar.bz2
strongswan-d9ad73d867e99870a25f4cad47bf50ee0a878821.tar.xz
fixed format string argument error, resulting in crash
fixed memleak if pool not found
Diffstat (limited to 'src/charon/plugins/sql/sql_attribute.c')
-rw-r--r--src/charon/plugins/sql/sql_attribute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charon/plugins/sql/sql_attribute.c b/src/charon/plugins/sql/sql_attribute.c
index cd6f7c0cd..826aa8318 100644
--- a/src/charon/plugins/sql/sql_attribute.c
+++ b/src/charon/plugins/sql/sql_attribute.c
@@ -89,7 +89,7 @@ static u_int get_pool(private_sql_attribute_t *this, char *name, u_int *timeout)
e->destroy(e);
return pool;
}
- DBG1(DBG_CFG, "ip pool '%s' not found");
+ DESTROY_IF(e);
return 0;
}