mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix ldisc_send() assertion in terminal answerback.
A user reports that if the ^E answerback string is configured to be empty, then causing the answerback to be sent fails the assertion in ldisc_send introduced in commitc269dd013
. I thought I'd caught all of the remaining cases of this in commit4634cd47f
, but apparently not.
This commit is contained in:
parent
7dde732f7d
commit
43a63019f5
@ -3406,7 +3406,8 @@ static void term_out(Terminal *term)
|
|||||||
strbuf *buf = term_input_data_from_charset(
|
strbuf *buf = term_input_data_from_charset(
|
||||||
term, DEFAULT_CODEPAGE,
|
term, DEFAULT_CODEPAGE,
|
||||||
term->answerback, term->answerbacklen);
|
term->answerback, term->answerbacklen);
|
||||||
ldisc_send(term->ldisc, buf->s, buf->len, false);
|
if (buf->len)
|
||||||
|
ldisc_send(term->ldisc, buf->s, buf->len, false);
|
||||||
strbuf_free(buf);
|
strbuf_free(buf);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user