diff options
Diffstat (limited to 'source4/smbd/process_thread.c')
-rw-r--r-- | source4/smbd/process_thread.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/source4/smbd/process_thread.c b/source4/smbd/process_thread.c index 4e11137f37..55688f85e8 100644 --- a/source4/smbd/process_thread.c +++ b/source4/smbd/process_thread.c @@ -117,17 +117,7 @@ static void thread_terminate_connection(struct server_connection *conn, const ch DEBUG(0,("thread_terminate_connection: reason[%s]\n",reason)); if (conn) { - if (conn->service) { - conn->service->ops->close_connection(conn,reason); - } - - if (conn->server_socket) { - MUTEX_LOCK_BY_ID(MUTEX_SMBD); - DLIST_REMOVE(conn->server_socket->connection_list,conn); - MUTEX_UNLOCK_BY_ID(MUTEX_SMBD); - } - - server_destroy_connection(conn); + talloc_free(conn); } /* terminate this thread */ |