Bug fix: Running tshark with the following command will leave a temp file on the file system.
\tshark -f "port 53" -a duration:1 -z proto,col info,dns.qry.type,dns.qry.type svn path=/trunk/; revision=34791
This commit is contained in:
parent
332954fd87
commit
f5cf823e1a
5
tshark.c
5
tshark.c
|
@ -65,6 +65,7 @@
|
|||
#include <epan/epan.h>
|
||||
#include <epan/filesystem.h>
|
||||
#include <wsutil/privileges.h>
|
||||
#include <wsutil/file_util.h>
|
||||
|
||||
#include "globals.h"
|
||||
#include <epan/timestamp.h>
|
||||
|
@ -2081,7 +2082,6 @@ capture_input_new_file(capture_options *capture_opts, gchar *new_file)
|
|||
gboolean is_tempfile;
|
||||
int err;
|
||||
|
||||
|
||||
if(capture_opts->state == CAPTURE_PREPARING) {
|
||||
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_MESSAGE, "Capture started!");
|
||||
}
|
||||
|
@ -2271,6 +2271,9 @@ capture_input_closed(capture_options *capture_opts, gchar *msg)
|
|||
|
||||
if(capture_opts->cf != NULL && ((capture_file *) capture_opts->cf)->wth != NULL) {
|
||||
wtap_close(((capture_file *) capture_opts->cf)->wth);
|
||||
if(((capture_file *) capture_opts->cf)->user_saved == FALSE){
|
||||
ws_unlink(((capture_file *) capture_opts->cf)->filename);
|
||||
}
|
||||
}
|
||||
#ifdef USE_BROKEN_G_MAIN_LOOP
|
||||
/*g_main_loop_quit(loop);*/
|
||||
|
|
Loading…
Reference in New Issue