Displaying 1 result from an estimated 1 matches for "x11_timeout_slack".
2018 Apr 27
4
[PATCH] allow indefinite ForwardX11Timeout by setting it to 0
...ntloop.c b/clientloop.c
index 7bcf22e3..99dcec89 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -342,11 +342,17 @@ client_x11_get_proto(struct ssh *ssh, const char
*display,
rmdir(xauthdir);
return -1;
}
-
- if (timeout >= UINT_MAX - X11_TIMEOUT_SLACK)
+ /* add (at most) X11_TIMEOUT_SLACK to timeout to get
+ * x11_timeout_real, but do not adjust a timeout of 0 or
+ * overflow integers.
+ */
+ if (timeout == 0)
+ x11_timeout_real = 0;
+ else if (timeout >= UINT...