From: Jeremy Allison Date: Wed, 17 Jul 2019 21:59:00 +0000 (-0700) Subject: s3: smbd: Remove call to dptr_closecnum() on connection shutdown. X-Git-Tag: tdb-1.4.2~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d84c048ea5350418cff87d5bf12f2f583d592994;p=thirdparty%2Fsamba.git s3: smbd: Remove call to dptr_closecnum() on connection shutdown. Now all client enumerations use fsp file handles we will aleady close them in file_close_conn() above. The only user of dptr_closecnum() is for the strange old OS/2 semantics, so I can't get rid of it until SMB1 is removed. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/service.c b/source3/smbd/service.c index d7c85d8b6ca..732cd237b66 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -1118,10 +1118,6 @@ void close_cnum(connection_struct *conn, uint64_t vuid) file_close_conn(conn); - if (!IS_IPC(conn)) { - dptr_closecnum(conn); - } - change_to_root_user(); DEBUG(IS_IPC(conn)?3:2, ("%s (%s) closed connection to service %s\n",