From ee57847596ca14d02588b5690a3a59cb8296fdd4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 28 May 2012 01:23:28 +0000 Subject: That doesn't work correctly if we read in a file with no interface information, as it'll fill in whatever stuff happens to be in the capture info. We should somehow figure uot whether this is a capture we just did (note: cf->is_tempfile does *NOT* necessarily tell us that, as it's set for the result of a merge, and is cleared if we save the capture) and fill in the interface information only if that's the case. Put in a comment to note that we need to do that. svn path=/trunk/; revision=42874 --- summary.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'summary.c') diff --git a/summary.c b/summary.c index 9433fe8b0c..b9ecb6760d 100644 --- a/summary.c +++ b/summary.c @@ -207,6 +207,9 @@ summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_ guint i; if (st->ifaces->len == 0) { + /* + * XXX - do this only if we have a live capture. + */ for (i = 0; i < capture_opts->all_ifaces->len; i++) { device = g_array_index(capture_opts->all_ifaces, interface_t, i); if (!device.selected) { -- cgit v1.2.3