ldb:ldb_modules.c - "dlclose" could cause inference on "dlerror"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 21 Oct 2010 08:28:32 +0000 (10:28 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 21 Oct 2010 09:28:19 +0000 (09:28 +0000)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Oct 21 09:28:19 UTC 2010 on sn-devel-104

source4/lib/ldb/common/ldb_modules.c

index b8f155d2f0fd208456db124be06f9b74a64302d1..1b0f6f74f814a026fb8a47e46e6202437a71dda9 100644 (file)
@@ -320,8 +320,8 @@ static void *ldb_dso_load_symbol(struct ldb_context *ldb, const char *name,
 
        sym = dlsym(handle, symbol);
        if (sym == NULL) {
-               dlclose(handle);
                ldb_debug(ldb, LDB_DEBUG_ERROR, "no symbol `%s' found in %s: %s", symbol, path, dlerror());
+               dlclose(handle);
                return NULL;
        }