summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorDaniel Martin <consume.noise@gmail.com>2017-11-20 10:47:38 +0100
committerAdam Jackson <ajax@redhat.com>2017-11-29 14:50:12 -0500
commit918afeecbc63d70413e222efdb2ac4cfb16eae9e (patch)
treea2a4cf84ef0f04c48229550689bb190c419e40dc /os
parent559954aaa8d811a22cf918cc16a7d618e12201a0 (diff)
os/xdmcp: Honour -once when session is dead
Terminate a dead session when -once was passed. Don't restart it. Signed-off-by: Daniel Martin <consume.noise@gmail.com> Reviewed-by: Walter Harms <wharms@bfs.de>
Diffstat (limited to 'os')
-rw-r--r--os/xdmcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/xdmcp.c b/os/xdmcp.c
index 906c95944..7aeb393e6 100644
--- a/os/xdmcp.c
+++ b/os/xdmcp.c
@@ -797,7 +797,7 @@ XdmcpDeadSession(const char *reason)
ErrorF("XDM: %s, declaring session dead\n", reason);
state = XDM_INIT_STATE;
isItTimeToYield = TRUE;
- dispatchException |= DE_RESET;
+ dispatchException |= (OneSession ? DE_TERMINATE : DE_RESET);
TimerCancel(xdmcp_timer);
timeOutRtx = 0;
send_packet();