summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-09-02 17:19:58 +0000
committernicm <nicm@openbsd.org>2020-09-02 17:19:58 +0000
commit75fe7ac93d84d2a32a031fb251648e06b3234f86 (patch)
tree41207cfb8fad0c87b5767befdb1e7b4bd2e01f32
parentAdd 30s timeout for OCSP requests. (diff)
downloadwireguard-openbsd-75fe7ac93d84d2a32a031fb251648e06b3234f86.tar.xz
wireguard-openbsd-75fe7ac93d84d2a32a031fb251648e06b3234f86.zip
Check started flag before looking for capability.
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 0983a5d6dd4..bf64150f22c 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.383 2020/09/02 13:46:36 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.384 2020/09/02 17:19:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1905,10 +1905,10 @@ tty_set_selection(struct tty *tty, const char *buf, size_t len)
char *encoded;
size_t size;
- if (!tty_term_has(tty->term, TTYC_MS))
- return;
if (~tty->flags & TTY_STARTED)
return;
+ if (!tty_term_has(tty->term, TTYC_MS))
+ return;
size = 4 * ((len + 2) / 3) + 1; /* storage for base64 */
encoded = xmalloc(size);