diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-06 15:00:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-06 15:00:49 +0000 |
commit | 2684f508493ca2563b736216af0801b9532d225e (patch) | |
tree | e84fd3b665f7f5eeb309ce58c8b057945db9a77f /source3/smbd/conn.c | |
parent | 5612f6a2aa1c9ebd6e8c1d5224f2396a6d7b60b9 (diff) | |
download | samba-2684f508493ca2563b736216af0801b9532d225e.tar.gz samba-2684f508493ca2563b736216af0801b9532d225e.tar.xz samba-2684f508493ca2563b736216af0801b9532d225e.zip |
fixed a vfs crash bug
(This used to be commit 76da586396c85b6614579b9234eec34f57c12ffe)
Diffstat (limited to 'source3/smbd/conn.c')
-rw-r--r-- | source3/smbd/conn.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index 1dc4ac9e7d9..f43a30d320a 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -164,15 +164,13 @@ free a conn structure ****************************************************************************/ void conn_free(connection_struct *conn) { - /* Close dlopen() handle */ - - if (conn->vfs_conn->dl_handle != NULL) { - dlclose(conn->vfs_conn->dl_handle); /* should we check return val? */ - } - /* Free vfs_connection_struct */ if (conn->vfs_conn != NULL) { + /* Close dlopen() handle */ + if (conn->vfs_conn->dl_handle) { + dlclose(conn->vfs_conn->dl_handle); + } if (conn->vfs_conn->groups != NULL) { free(conn->vfs_conn->groups); } |