aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-09-05 20:35:03 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-09-05 20:35:03 +0000
commit0cf459a6cc71e082bbfabd4b947034f5d5252095 (patch)
treeb7cfa76391f6af70dbbd405d5f536a716d12497a /file.c
parent2d1b7d1e32d1d4b0e2829abf2ade8aacbe585cf2 (diff)
Try to fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9106 :
Intialize phdr structure to avoid an invalid access to phdr->opt_comment svn path=/trunk/; revision=51791
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index 38e4c3c82b..6be751a506 100644
--- a/file.c
+++ b/file.c
@@ -2216,6 +2216,7 @@ process_specified_packets(capture_file *cf, packet_range_t *range,
range_process_e process_this;
struct wtap_pkthdr phdr;
+ memset(&phdr, 0, sizeof(struct wtap_pkthdr));
buffer_init(&buf, 1500);
/* Update the progress bar when it gets to this value. */