diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-08 23:48:11 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-08 23:48:11 +0100 |
commit | 9b3caf1f841cf451ba162bcaf83a96ba0c834a78 (patch) | |
tree | 1ea5adf151c03064c58f9e44fc72e8f87bfba16c /src/bencoding.c | |
parent | idea for metadl via tcp for outgoing connections implemented, not tested, compiles (diff) | |
download | travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.tar travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.tar.gz travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.tar.bz2 travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.tar.lz travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.tar.xz travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.tar.zst travnik-9b3caf1f841cf451ba162bcaf83a96ba0c834a78.zip |
Diffstat (limited to 'src/bencoding.c')
-rw-r--r-- | src/bencoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bencoding.c b/src/bencoding.c index e456486..a46380e 100644 --- a/src/bencoding.c +++ b/src/bencoding.c @@ -513,7 +513,7 @@ struct bencoding * bdecode_safe (const char * s, int len, enum benc opts, unsign return NULL; default: if (!(s[0] >= '0' && s[0] <= '9')) { /* not a string. not checking this would allow DoS for parsing "lx" */ - fprintf(stderr, "bencoding: unknown type %d - %c\n", s[0], s[0]); + // fprintf(stderr, "bencoding: unknown type %d - %c\n", s[0], s[0]); free(b); return NULL; } |