mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
by convention, addr is a uint32_t and address is a string.
that's why we hadn't caught that leak. svn:r5174
This commit is contained in:
parent
5c5d2e82e6
commit
ae30c8101b
@ -858,11 +858,11 @@ retry_listeners(int type, config_line_t *cfg,
|
||||
line = NULL;
|
||||
SMARTLIST_FOREACH(launch, config_line_t *, wanted,
|
||||
{
|
||||
char *addr=NULL;
|
||||
char *address=NULL;
|
||||
uint16_t port;
|
||||
if (! parse_addr_port(wanted->value, &addr, NULL, &port)) {
|
||||
int addr_matches = !strcasecmp(addr, conn->address);
|
||||
tor_free(addr);
|
||||
if (! parse_addr_port(wanted->value, &address, NULL, &port)) {
|
||||
int addr_matches = !strcasecmp(address, conn->address);
|
||||
tor_free(address);
|
||||
if (! port)
|
||||
port = port_option;
|
||||
if (port == conn->port && addr_matches) {
|
||||
|
Loading…
Reference in New Issue
Block a user