diff options
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index df7daa76c1..0ee2e16885 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2685,7 +2685,7 @@ hostname_type_t parse_extended_hostname(char *address) { char *s; - char query[REND_SERVICE_ID_LEN+1]; + char query[REND_SERVICE_ID_LEN_BASE32+1]; s = strrchr(address,'.'); if (!s) @@ -2699,8 +2699,8 @@ parse_extended_hostname(char *address) /* so it is .onion */ *s = 0; /* nul-terminate it */ - if (strlcpy(query, address, REND_SERVICE_ID_LEN+1) >= - REND_SERVICE_ID_LEN+1) + if (strlcpy(query, address, REND_SERVICE_ID_LEN_BASE32+1) >= + REND_SERVICE_ID_LEN_BASE32+1) goto failed; if (rend_valid_service_id(query)) { return ONION_HOSTNAME; /* success */ |