diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/conn_idle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/conn_idle.c b/source3/smbd/conn_idle.c index 23dcc8988a..60263667c1 100644 --- a/source3/smbd/conn_idle.c +++ b/source3/smbd/conn_idle.c @@ -105,6 +105,11 @@ void conn_force_tdis(struct smbd_server_connection *sconn, const char *sharename next = conn->next; + if (conn->tcon == NULL) { + continue; + } + tcon = conn->tcon; + if (close_all) { do_close = true; } else if (strequal(lp_servicename(SNUM(conn)), sharename)) { |