From ddea9de6231bb1cb6221beca345e5d476fd18d2f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 11 Aug 2009 22:09:06 -0700 Subject: 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. --- savefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'savefile.c') 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); -- cgit v1.2.3