summaryrefslogtreecommitdiff
path: root/source3/smbd/conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/conn.c')
-rw-r--r--source3/smbd/conn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index 1a67ac9b32..b9433bb965 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -161,16 +161,19 @@ find_again:
/****************************************************************************
Close all conn structures.
+return true if any were closed
****************************************************************************/
-
-void conn_close_all(void)
+bool conn_close_all(void)
{
connection_struct *conn, *next;
+ bool ret = false;
for (conn=Connections;conn;conn=next) {
next=conn->next;
set_current_service(conn, 0, True);
close_cnum(conn, conn->vuid);
+ ret = true;
}
+ return ret;
}
/****************************************************************************