1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-24 00:56:14 +00:00

[bittorrent] I'm not sure, but I guess it was a bug here.

sizeof == 8 vs sizeof == 20
This commit is contained in:
Witold Filipczyk 2019-11-15 17:29:58 +01:00
parent 94c6c950f7
commit f50e306d16

View File

@ -59,7 +59,7 @@ find_bittorrent_connection(bittorrent_id_T info_hash)
struct bittorrent_connection *bittorrent;
foreach (bittorrent, bittorrent_connections)
if (!memcmp(bittorrent->meta.info_hash, info_hash, sizeof(info_hash)))
if (!memcmp(bittorrent->meta.info_hash, info_hash, sizeof(bittorrent_id_T)))
return bittorrent;
return NULL;