diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-30 21:30:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-30 21:30:04 +0000 |
commit | ae30c8101bc10890a6fb07a478f80f141b9cb8f2 (patch) | |
tree | 7bc2092a55b19df71826fd1d48ffb0df3c4456e2 | |
parent | 5c5d2e82e677ae80e60c7ed1cd2be2c2dbec67c2 (diff) | |
download | tor-ae30c8101bc10890a6fb07a478f80f141b9cb8f2.tar.gz tor-ae30c8101bc10890a6fb07a478f80f141b9cb8f2.zip |
by convention, addr is a uint32_t and address is a string.
that's why we hadn't caught that leak.
svn:r5174
-rw-r--r-- | src/or/connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 82f5e82bd6..1c3bf4cbc0 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -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) { |