diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-02-28 13:59:13 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-02-28 15:06:16 +0000 |
commit | 07bb8fc04794a1d8e76bb1bee3401122d054b32d (patch) | |
tree | c0a56c3ce4da6bb983992de18118ab356d4c7d7b | |
parent | 87dfaa72cfa24b92fdd1e60deccfda3b3eb2fd78 (diff) |
dof: don't initialize nonce it is useless.
Change-Id: I300145c04293fa06ea6af0a5797d27023c3b2fbc
Reviewed-on: https://code.wireshark.org/review/26177
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/packet-dof.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dof.c b/epan/dissectors/packet-dof.c index 402ef95c0f..7eeecf8930 100644 --- a/epan/dissectors/packet-dof.c +++ b/epan/dissectors/packet-dof.c @@ -7872,10 +7872,7 @@ static int dissect_ccm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * or the client and the packet count. The packet count either comes from * the PDU or is a function of the previous value (of the sending node). */ - guint8 nonce[] = { 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x00, - 0x00, 0x00, 0x00, 0x00 }; + guint8 nonce[11]; nonce[0] = (pdata->nid) >> 24; nonce[1] = (pdata->nid) >> 16; |