diff options
author | wollman <wollman@FreeBSD.org> | 1997-02-07 17:55:01 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-02-07 17:55:01 +0000 |
commit | 1b0b9bef8d879c09e5c3ff2888118dc6ba5f626f (patch) | |
tree | 2b9ea236e85635f31fd1c5964fdeb65216fd83b4 /usr.bin | |
parent | eb4c11f3a259d782e105588a7e45035268de6d7e (diff) | |
download | FreeBSD-src-1b0b9bef8d879c09e5c3ff2888118dc6ba5f626f.zip FreeBSD-src-1b0b9bef8d879c09e5c3ff2888118dc6ba5f626f.tar.gz |
Fix off-by-one error in proxy host:port parser.
Submitted by: fenner
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fetch/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/fetch/util.c b/usr.bin/fetch/util.c index b7d4b21..698866e 100644 --- a/usr.bin/fetch/util.c +++ b/usr.bin/fetch/util.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: util.c,v 1.2 1997/02/02 09:16:37 bde Exp $ + * $Id: util.c,v 1.3 1997/02/05 19:59:18 wollman Exp $ */ #include <sys/types.h> @@ -163,7 +163,6 @@ parse_host_port(const char *s, char **hostname, int *port) colon = strchr(s, ':'); if (colon != 0) { - colon++; errno = 0; ul = strtoul(colon + 1, &ep, 10); if (*ep != '\0' || colon[1] == '\0' || errno != 0 |