summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/conn.c2
-rw-r--r--source3/smbd/vfs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index f552d4a224..c0aa447016 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -166,7 +166,7 @@ void conn_free(connection_struct *conn)
if (conn->dl_handle != NULL) {
/* Close dlopen() handle */
- dlclose(conn->dl_handle);
+ sys_dlclose(conn->dl_handle);
}
DLIST_REMOVE(Connections, conn);
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 4e2e353ed8..1d1e1e45fc 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -139,7 +139,7 @@ static BOOL vfs_init_custom(connection_struct *conn)
/* Open object file */
if ((conn->dl_handle = sys_dlopen(lp_vfsobj(SNUM(conn)), RTLD_NOW | RTLD_GLOBAL)) == NULL) {
- DEBUG(0, ("Error opening %s: %s\n", lp_vfsobj(SNUM(conn)), dlerror()));
+ DEBUG(0, ("Error opening %s: %s\n", lp_vfsobj(SNUM(conn)), sys_dlerror()));
return False;
}