1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05: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; struct bittorrent_connection *bittorrent;
foreach (bittorrent, bittorrent_connections) 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 bittorrent;
return NULL; return NULL;