Browse Source

Merge pull request #36 from brianmwaters/master

Accept bencoded dictionaries whose keys are not in alphabetical order.

Closes GH-30
Closes GH-36
master
Marq Schneider 12 years ago
parent
commit
c408419bd2
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      misc/benc.c

+ 1
- 3
misc/benc.c View File

@@ -233,10 +233,8 @@ benc_dget_any(const char *p, const char *key)
cmp = strncmp(bstr, key, blen); cmp = strncmp(bstr, key, blen);
if (cmp == 0 && len == blen) if (cmp == 0 && len == blen)
return p; return p;
else if (cmp <= 0)
p = benc_next(p);
else else
return NULL;
p = benc_next(p);
} }
return NULL; return NULL;
} }


Loading…
Cancel
Save