Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow btpd to accept bencoded dictionaries whose keys are not in alph…

…abetical order.
  • Loading branch information...
commit a406d9d1bd0830ee8c26a3e61bc2503b7241aaca 1 parent c550cbb
Brian Waters authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 misc/benc.c
View
4 misc/benc.c
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.