mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -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:
parent
94c6c950f7
commit
f50e306d16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user