1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

New utility functions to make ptrlens.

One to make one from a NUL-terminated string, and another to make one
from a strbuf. I've switched over all the obvious cases where I should
have been using these functions.
This commit is contained in:
Simon Tatham
2018-10-13 16:30:59 +01:00
parent b9bfc81531
commit 56096ba558
5 changed files with 18 additions and 6 deletions

View File

@ -867,8 +867,8 @@ static void ssh2_userauth_process_queue(PacketProtocolLayer *ppl)
BinarySink_UPCAST(sigblob));
strbuf_free(sigdata);
ssh2_userauth_add_sigblob(
s, s->pktout, make_ptrlen(pkblob->s, pkblob->len),
make_ptrlen(sigblob->s, sigblob->len));
s, s->pktout, ptrlen_from_strbuf(pkblob),
ptrlen_from_strbuf(sigblob));
strbuf_free(pkblob);
strbuf_free(sigblob);