diff options
author | Alexander Færøy <ahf@torproject.org> | 2023-12-07 21:38:32 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2023-12-07 21:38:32 +0000 |
commit | ae11abfe92aa7b70d925c43ff25527d1f4aff699 (patch) | |
tree | 52615e55f1194adb4dff3ea6544272ffbd4a2a9b /src/core | |
parent | d07810a3c96b7c063696fd3a27d9ad09f5141135 (diff) | |
parent | 1b1f6e8574976918a692f771e22eecd2cdc0fec7 (diff) | |
download | tor-ae11abfe92aa7b70d925c43ff25527d1f4aff699.tar.gz tor-ae11abfe92aa7b70d925c43ff25527d1f4aff699.zip |
Merge branch 'maint-0.4.8'
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/channeltls.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c index 1f5a466777..a79f5c36e8 100644 --- a/src/core/or/channeltls.c +++ b/src/core/or/channeltls.c @@ -360,13 +360,19 @@ channel_tls_handle_incoming(or_connection_t *orconn) /* Register it */ channel_register(chan); + char *transport_name = NULL; + if (channel_tls_get_transport_name_method(TLS_CHAN_TO_BASE(orconn->chan), + &transport_name) < 0) { + transport_name = NULL; + } /* Start tracking TLS connections in the DoS subsystem as soon as possible, * so we can protect against attacks that use partially open connections. */ geoip_note_client_seen(GEOIP_CLIENT_CONNECT, - &TO_CONN(orconn)->addr, NULL, + &TO_CONN(orconn)->addr, transport_name, time(NULL)); - dos_new_client_conn(orconn, NULL); + dos_new_client_conn(orconn, transport_name); + tor_free(transport_name); return chan; } |