diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-12-02 09:19:41 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-12-02 12:41:09 +0000 |
commit | 1f363e5c4bf493c9581d8a1bdf9fa9796856628a (patch) | |
tree | 7ab799022180a00cc1b20b8170d09afa2a7811b7 | |
parent | 739cfa0d7a69181aad73469173c289f351c21efb (diff) |
OSTIP: fix typo found by PVS Studio (V519)
The 'pinfo->clnp_dstref' variable is assigned values twice successively
Change-Id: I02b8ae54728f88c2173b4522d436bd2f7b1b7bc0
Reviewed-on: https://code.wireshark.org/review/12365
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-ositp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ositp.c b/epan/dissectors/packet-ositp.c index 7da6b4b1d1..5d56fd6c9f 100644 --- a/epan/dissectors/packet-ositp.c +++ b/epan/dissectors/packet-ositp.c @@ -1641,7 +1641,7 @@ static int ositp_decode_DC(tvbuff_t *tvb, int offset, guint8 li, guint8 tpdu, dst_ref = tvb_get_ntohs(tvb, offset + P_DST_REF); src_ref = tvb_get_ntohs(tvb, offset + P_SRC_REF); pinfo->clnp_dstref = dst_ref; - pinfo->clnp_dstref = src_ref; + pinfo->clnp_srcref = src_ref; col_append_fstr(pinfo->cinfo, COL_INFO, "DC TPDU src-ref: 0x%04x dst-ref: 0x%04x", src_ref, dst_ref); |