Skip to content

Made btpd accept bencoded dictionaries whose keys are not in alphabetical order. #30

Closed
wants to merge 1 commit into from
+1 −3
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;
}
Something went wrong with that request. Please try again.