diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2010-11-13 22:25:19 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2010-11-15 12:51:51 +0100 |
commit | cec21652a7c939d1112591347e35c0815de63f93 (patch) | |
tree | 2e751f82e99229b9fb2044e4fc21d7bc9b169952 /src/or/router.h | |
parent | dbba84c917279c8c58b1bfdac37fbcdfd84b7bb7 (diff) | |
download | tor-cec21652a7c939d1112591347e35c0815de63f93.tar.gz tor-cec21652a7c939d1112591347e35c0815de63f93.zip |
Try harder not to exceed the 50 KB extra-info descriptor limit.
Our checks that we don't exceed the 50 KB size limit of extra-info
descriptors apparently failed. This patch fixes these checks and reserves
another 250 bytes for appending the signature. Fixes bug 2183.
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.h b/src/or/router.h index c5e7987dd6..0bfa2d5545 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -77,7 +77,7 @@ int router_pick_published_address(or_options_t *options, uint32_t *addr); int router_rebuild_descriptor(int force); int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, crypto_pk_env_t *ident_key); -int extrainfo_dump_to_string(char *s, size_t maxlen, extrainfo_t *extrainfo, +int extrainfo_dump_to_string(char **s, extrainfo_t *extrainfo, crypto_pk_env_t *ident_key); int is_legal_nickname(const char *s); int is_legal_nickname_or_hexdigest(const char *s); |