Skip to content

Commit

Permalink
Merge pull request #36 from brianmwaters/master
Browse files Browse the repository at this point in the history
Accept bencoded dictionaries whose keys are not in alphabetical order.

Closes GH-30
Closes GH-36
  • Loading branch information
queueRAM committed May 6, 2012
2 parents c550cbb + 382ccb7 commit c408419
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions misc/benc.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit c408419

Please sign in to comment.