summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/conn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index ebd18861fc..0e74b62ee0 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -168,11 +168,14 @@ void conn_free(connection_struct *conn)
{
/* Free vfs_connection_struct */
+#ifdef HAVE_LIBDL
if (conn->vfs_conn != NULL) {
/* Close dlopen() handle */
if (conn->vfs_conn->dl_handle) {
dlclose(conn->vfs_conn->dl_handle);
}
+#endif /* HAVE_LIBDL */
+
if (conn->vfs_conn->groups != NULL) {
free(conn->vfs_conn->groups);
}