SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,17 @@
Be more lenient when parsing invalid .torrent files.
From upstream commit 382ccb74857c8de10d3319486a4a1137763badf7.
--- misc/benc.c.orig Wed Jul 14 20:51:43 2010
+++ misc/benc.c Fri May 15 01:23:42 2015
@@ -233,10 +233,8 @@ benc_dget_any(const char *p, const char *key)
cmp = strncmp(bstr, key, blen);
if (cmp == 0 && len == blen)
return p;
- else if (cmp <= 0)
- p = benc_next(p);
else
- return NULL;
+ p = benc_next(p);
}
return NULL;
}