commit 746ca051ad4204f4e38aeba12e06652fa525d387
parent ab5dc97e8c561fd52315b7c87ea5fc70e235e67d
Author: sin <sin@2f30.org>
Date: Mon, 21 Dec 2015 20:13:57 +0000
parseurl() cannot fail
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tracker.c b/tracker.c
@@ -15,9 +15,7 @@ tracker_get_peers(struct torrent *t, struct ben **reply)
int r, s;
*reply = NULL;
- if ((url = parseurl(t->announcers[0].urls[0], &host, &port, &path)) < 0)
- return -1;
-
+ url = parseurl(t->announcers[0].urls[0], &host, &port, &path);
infohash = urlencode((char *)t->infohash, 20);
id = urlencode(peerid(), 20);
r = snprintf(buf, sizeof(buf),