summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 0ca76d5efd..969afa464a 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2311,7 +2311,8 @@ parse_extended_hostname(char *address)
char query[REND_SERVICE_ID_LEN+1];
s = strrchr(address,'.');
- if (!s) return 0; /* no dot, thus normal */
+ if (!s)
+ return NORMAL_HOSTNAME; /* no dot, thus normal */
if (!strcmp(s+1,"exit")) {
*s = 0; /* nul-terminate it */
return EXIT_HOSTNAME; /* .exit */