From: Jennifer Richards Date: Fri, 25 May 2018 17:32:50 +0000 (-0400) Subject: Fix bug in tr_parse_port() X-Git-Tag: 3.4.0~1^2~18^2~6 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=238e1fe681153ebe33af688fb03ad1919f7eb531 Fix bug in tr_parse_port() --- diff --git a/common/tr_util.c b/common/tr_util.c index cb62460..ad10671 100644 --- a/common/tr_util.c +++ b/common/tr_util.c @@ -268,7 +268,7 @@ int tr_parse_port(const char *s) s_port += 1; /* port now starts at s_port */ /* Parse the port number */ - port = strtol(s, &end_of_conversion, /* base */ 10); + port = strtol(s_port, &end_of_conversion, /* base */ 10); /* validate */ if ((end_of_conversion == s_port) /* there was no port, just a colon */