forked from osmocom/wireshark
fix a bug (reported by Greg Morris) caused by code cleanup (blame it on me):
as the total packet count wasn't updated, the capture_info dialog wasn't updated accordingly svn path=/trunk/; revision=13021
This commit is contained in:
parent
5817bb4c03
commit
cb9be2d997
|
@ -1390,7 +1390,8 @@ capture_loop_packet_cb(guchar *user, const struct pcap_pkthdr *phdr,
|
|||
int err;
|
||||
|
||||
/* if the user told us to stop after x packets, do we have enough? */
|
||||
if ((ld->packets_max > 0) && (++ld->counts.total >= ld->packets_max))
|
||||
ld->counts.total++;
|
||||
if ((ld->packets_max > 0) && (ld->counts.total >= ld->packets_max))
|
||||
{
|
||||
ld->go = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue