mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Pass the calling Socket to plug_log.
This enables plug_log to run query methods on the socket in order to find out useful information to log. I don't expect it's sensible to do anything else with it.
This commit is contained in:
@ -339,7 +339,8 @@ static void proxy_telnet_process_queue(ProxyNegotiator *pn)
|
||||
put_datapl(logmsg, PTRLEN_LITERAL("Sending Telnet proxy command: "));
|
||||
put_c_string_literal(logmsg, ptrlen_from_asciz(censored_cmd));
|
||||
|
||||
plug_log(pn->ps->plug, PLUGLOG_PROXY_MSG, NULL, 0, logmsg->s, 0);
|
||||
plug_log(pn->ps->plug, &pn->ps->sock, PLUGLOG_PROXY_MSG, NULL, 0,
|
||||
logmsg->s, 0);
|
||||
strbuf_free(logmsg);
|
||||
sfree(censored_cmd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user