diff --git a/src/tools.c b/src/tools.c index f62032b9c..33cbfc9f6 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1709,9 +1709,7 @@ int url2sa(const char *url, int ulen, struct sockaddr_storage *addr, struct spli out->host_len = ret; } - /* we need to assign again curr and end from the trash */ - url = trash.area; - curr = trash.area + ret; + curr += ret; /* Decode port. */ if (*curr == ':') {