mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-19 02:39:29 +01:00
monitor: Cast bytes_read to incl_len type from PCAP packet
This commit is contained in:
parent
25a2ec7c11
commit
43efaf0163
@ -215,7 +215,7 @@ bool pcap_read(struct pcap *pcap, struct timeval *tv,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bytes_read < pkt.incl_len) {
|
||||
if ((uint32_t) bytes_read < pkt.incl_len) {
|
||||
if (lseek(pcap->fd, pkt.incl_len - bytes_read, SEEK_CUR) < 0) {
|
||||
pcap->closed = true;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user