r19709: Fix bug #4224 - deadtime timeout was broken
authorJeremy Allison <jra@samba.org>
Wed, 15 Nov 2006 01:06:45 +0000 (01:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:48 +0000 (12:15 -0500)
because of this. Probably a show-stopper for 3.0.23d.
Thanks to Alain GORLIER <alain.gorlier@altissemiconductor.com>
for the fix.
Jeremy.
(This used to be commit b167785cbd7911940e16fd2a54ec665857feef5e)

source3/smbd/conn.c

index 73d2ed7003b1a6f2aad14a4fe8079ffe3f9663a7..0b0da589e4d0a0df510c40f22605a188b87fc138 100644 (file)
@@ -199,6 +199,7 @@ BOOL conn_idle_all(time_t t, int deadtime)
                /* Update if connection wasn't idle. */
                if (conn->lastused != conn->lastused_count) {
                        conn->lastused = t;
+                       conn->lastused_count = t;
                }
 
                /* close dirptrs on connections that are idle */