diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-19 23:48:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-19 23:48:14 +0000 |
commit | 6b716fdfb96f0dd746c948a8624dc90cec64d0c1 (patch) | |
tree | a9df278adbdb798346f5aa2b806f780cd46beae2 /src/common/util.h | |
parent | 5ebb949c9f8c66c7c38eda65226677acbe148193 (diff) | |
download | tor-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.h | 1 |
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); |