summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-26 02:51:45 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-26 02:51:45 +0200
commitd3f2ffc559ff19ee542a11d53da4c6dc636843e9 (patch)
tree0e924147cc83a87fe9a412abfe91c329050cba9e
parent0991b112cdc4f4f5fdf3ee81ca575afc1a4b6bb3 (diff)
don't call the driver's destroy function when initialization failed
-rw-r--r--src/dso.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dso.c b/src/dso.c
index ec9472d..c42eff2 100644
--- a/src/dso.c
+++ b/src/dso.c
@@ -264,6 +264,7 @@ int driver_open(ca_context *c) {
ca_free(driver);
if ((ret = p->driver_open(c)) < 0) {
+ p->driver_destroy = NULL;
driver_destroy(c);
return ret;
}