aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-08-11 22:09:06 -0700
committerGuy Harris <guy@alum.mit.edu>2009-08-11 22:09:06 -0700
commitddea9de6231bb1cb6221beca345e5d476fd18d2f (patch)
treea359f842d530220d92c4fde292733ef20d703730 /savefile.c
parentb93bc35e51b26987822297ff6182f0865840fa10 (diff)
When using pcap_create_common() in pcap_fopen_offline(), leave
p->opt.source null, so that we don't try to free a constant string when we close the pcap_t.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/savefile.c b/savefile.c
index 67da51f..b501b6a 100644
--- a/savefile.c
+++ b/savefile.c
@@ -1361,7 +1361,7 @@ pcap_fopen_offline(FILE *fp, char *errbuf)
bpf_u_int32 magic;
int linklen;
- p = pcap_create_common("(savefile)", errbuf);
+ p = pcap_create_common(NULL, errbuf);
if (p == NULL)
return (NULL);