Fix "No interfaces selected" when restarting capture

global_capture_opts.ifaces store the interfaces that were added for the
next capture and must always be marked as selected.

Fixes regression from 92a2661.

Bug: 11939
Change-Id: Ib3dcd1b228b7a9681439e172d934e0ce66de6c0f
Reviewed-on: https://code.wireshark.org/review/14725
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Peter Wu 2016-03-31 12:47:07 +02:00 committed by Michael Mann
parent a859793b0d
commit b88153e595
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ fill_from_ifaces (interface_t *device)
if (interface_opts.linktype != -1) {
device->active_dlt = interface_opts.linktype;
}
if (!device->selected) {
device->selected = TRUE;
global_capture_opts.num_selected++;
}
return;
}
}