Fix builds without libpcap.

capture_opts_cleanup() doesn't exist if we're building without libpcap,
so don't call it if we're building without libpcap.

Change-Id: I6c9defea15fac7df5533269c4945b965d9a67c25
Reviewed-on: https://code.wireshark.org/review/19924
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-02-02 16:00:49 -08:00
parent 93a5c83f0a
commit 14fba80f0f
2 changed files with 4 additions and 0 deletions

View File

@ -2189,7 +2189,9 @@ main(int argc, char *argv[])
output_fields = NULL;
clean_exit:
#ifdef HAVE_LIBPCAP
capture_opts_cleanup(&global_capture_opts);
#endif
return exit_status;
}

View File

@ -943,7 +943,9 @@ int main(int argc, char *qt_argv[])
#endif /* _WIN32 */
clean_exit:
#ifdef HAVE_LIBPCAP
capture_opts_cleanup(&global_capture_opts);
#endif
return ret_val;
}