diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 0981a44511f0..87cb815d024c 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -291,7 +291,7 @@ fetch_resolve(const char *addr, int port, int af) goto syserr; service = sbuf; } else if (*sep != '\0') { - service = sep; + service = sep + 1; } else { service = NULL; }