SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
17
net/btpd/patches/patch-misc_benc_c
Normal file
17
net/btpd/patches/patch-misc_benc_c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue