After a smbd crash, the session remains in the smbXsrv_session_global.tdb database. NetSessEnum also returns these sessions that are no longer valid.
Created attachment 14163 [details] git-am fix for 4.8.next. Cherry-picked from master.
Created attachment 14164 [details] git-am fix for 4.7.next. Back-ported from master.
Reassigning to Karolin.
Pushed to autobuild-v4-[7,8]-test.
(In reply to Karolin Seeger from comment #4) Pushed to both branches. Closing out bug report. Thanks!