mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-16 02:27:32 -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:
@ -604,11 +604,11 @@ static void do_telnet_read(Telnet *telnet, const char *buf, size_t len)
|
||||
strbuf_free(outbuf);
|
||||
}
|
||||
|
||||
static void telnet_log(Plug *plug, PlugLogType type, SockAddr *addr, int port,
|
||||
const char *error_msg, int error_code)
|
||||
static void telnet_log(Plug *plug, Socket *s, PlugLogType type, SockAddr *addr,
|
||||
int port, const char *error_msg, int error_code)
|
||||
{
|
||||
Telnet *telnet = container_of(plug, Telnet, plug);
|
||||
backend_socket_log(telnet->seat, telnet->logctx, type, addr, port,
|
||||
backend_socket_log(telnet->seat, telnet->logctx, s, type, addr, port,
|
||||
error_msg, error_code, telnet->conf,
|
||||
telnet->socket_connected);
|
||||
if (type == PLUGLOG_CONNECT_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user