aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-03-29 16:06:57 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-03-29 16:06:57 +0000
commit9daa63d45178f276a7cc457f8d0e783887aef174 (patch)
treed2e024d162063cedb2b72f4bd74a484c8050a44e /wiretap
parenta5a7b06e54a1fc3d87a795aae0f61f20a422b47c (diff)
The header will be there, just make sure the date is put in.
Coverity bug 148 svn path=/trunk/; revision=17756
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/iseries.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c
index b0837920a2..7d4ad164b0 100644
--- a/wiretap/iseries.c
+++ b/wiretap/iseries.c
@@ -260,7 +260,9 @@ iseries_check_file_type (wtap * wth, int *err, int format)
/* Save trace format for passing between packets */
sdate = g_malloc (10);
wth->capture.iseries = g_malloc (sizeof (iseries_t));
+ wth->capture.iseries->sdate = NULL;
wth->capture.iseries->format = format;
+ wth->capture.iseries->tcp_formatted = FALSE;
for (line = 0; line < ISERIES_HDR_LINES_TO_CHECK; line++)
{
@@ -537,7 +539,7 @@ iseries_parse_packet (wtap * wth, FILE_T fh,
* different on other platforms though all the traces I've seen seem so show resolution
* to 5 digits (i.e HH:MM:SS.nnnnn) so hopefully this will not require special handling
*/
- if (wth)
+ if (wth->capture.iseries->sdate)
{
num_items_scanned =
sscanf (wth->capture.iseries->sdate, "%d/%d/%d", &month, &day, &year);