Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2017-08-29 12:01:25 +01:00
3 changed files with 36 additions and 10 deletions

View File

@ -162,7 +162,7 @@ server_lock_client(struct client *c)
return;
cmd = options_get_string(c->session->options, "lock-command");
if (strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)
if (*cmd == '\0' || strlen(cmd) + 1 > MAX_IMSGSIZE - IMSG_HEADER_SIZE)
return;
tty_stop_tty(&c->tty);