From 84e23ce90f48de58cc2e8c3791e509330f1cd6f6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 23 Nov 2013 20:10:02 +0000 Subject: Set a field to squelch a Coverity warning. svn path=/trunk/; revision=53524 --- ui/cli/tap-follow.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ui/cli/tap-follow.c') diff --git a/ui/cli/tap-follow.c b/ui/cli/tap-follow.c index 3474862d2c..cb8a418e15 100644 --- a/ui/cli/tap-follow.c +++ b/ui/cli/tap-follow.c @@ -328,8 +328,9 @@ followUdpPacket( if (tvbp->length > 0) { memcpy(sc.src_addr, pip->net_src.data, pip->net_src.len); - sc.src_port = pip->srcport; - sc.dlen = tvbp->length; + sc.src_port = pip->srcport; + sc.dlen = tvbp->length; + sc.packet_num = pip->fd->num; size = fwrite(&sc, 1, sizeof sc, fp->filep); if (sizeof sc != size) @@ -390,8 +391,9 @@ followSslPacket( if (length > 0) { memcpy(sc.src_addr, pip->net_src.data, pip->net_src.len); - sc.src_port = pip->srcport; - sc.dlen = length; + sc.src_port = pip->srcport; + sc.dlen = length; + sc.packet_num = pip->fd->num; size = fwrite(&sc, 1, sizeof sc, fp->filep); if (sizeof sc != size) -- cgit v1.2.1