diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-11-23 20:10:02 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-11-23 20:10:02 +0000 |
commit | 84e23ce90f48de58cc2e8c3791e509330f1cd6f6 (patch) | |
tree | 5e2693ea2861b1a26c316763704f9c103e573f4b /ui/cli | |
parent | a18cf1975f7cc939da53f1bbff9f154cd9245dc5 (diff) | |
download | wireshark-84e23ce90f48de58cc2e8c3791e509330f1cd6f6.tar.gz |
Set a field to squelch a Coverity warning.
svn path=/trunk/; revision=53524
Diffstat (limited to 'ui/cli')
-rw-r--r-- | ui/cli/tap-follow.c | 10 |
1 files changed, 6 insertions, 4 deletions
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) |