Skip to content

Commit

Permalink
Fix another related address-parsing bug affecting ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
nextgens committed Oct 26, 2009
1 parent 05df262 commit 3de108c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ parse_addr_port(int severity, const char *addrport, char **address,

tor_assert(addrport);

colon = strchr(addrport, ':');
colon = strrchr(addrport, ':');
if (colon) {
_address = tor_strndup(addrport, colon-addrport);
_port = (int) tor_parse_long(colon+1,10,1,65535,NULL,NULL);
Expand Down

0 comments on commit 3de108c

Please sign in to comment.