aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-19 23:48:14 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-19 23:48:14 +0000
commit6b716fdfb96f0dd746c948a8624dc90cec64d0c1 (patch)
treea9df278adbdb798346f5aa2b806f780cd46beae2 /src/common/util.h
parent5ebb949c9f8c66c7c38eda65226677acbe148193 (diff)
downloadtor-6b716fdfb96f0dd746c948a8624dc90cec64d0c1.tar
tor-6b716fdfb96f0dd746c948a8624dc90cec64d0c1.tar.gz
NEEDS REVIEW. Act on previous comment, and handle named servers differently: now, we allow multiple servers with the same name in the routerlist even if that name is reserved, but we check whether names are reserved when we try to look up routers by nickname. This is a minor security fix. This makes router_add_to_routerlist O(1). This is a backport candidate.
svn:r8433
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index a10e10772..22f4ea3b9 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -75,6 +75,7 @@ char *_tor_strndup(const char *s, size_t n DMALLOC_PARAMS)
ATTR_MALLOC ATTR_NONNULL((1));
void *_tor_memdup(const void *mem, size_t len DMALLOC_PARAMS)
ATTR_MALLOC ATTR_NONNULL((1));
+void _tor_free(void *mem);
#ifdef USE_DMALLOC
extern int dmalloc_free(const char *file, const int line, void *pnt,
const int func_id);