]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix inspired by Don @ HP. Close down password server connection if keepalive
authorJeremy Allison <jra@samba.org>
Thu, 9 Aug 2001 19:22:51 +0000 (19:22 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 9 Aug 2001 19:22:51 +0000 (19:22 +0000)
fails.
Jeremy.

source/smbd/process.c

index dd2318b58a845d3519e5c6d533fc06590d989ff0..65fa600be466a859d3cb8e74df31f1d13567dd8a 100644 (file)
@@ -1104,7 +1104,10 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t
     /* also send a keepalive to the password server if its still
        connected */
     if (cli && cli->initialised)
-      send_keepalive(cli->fd);
+      if (!send_keepalive(cli->fd)) {
+        DEBUG( 2, ( "password server keepalive failed.\n"));
+        cli_shutdown(cli);
+      }
     last_keepalive_sent_time = t;
   }