(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-zbee-security.c) |
| |
| 617 | | | zbee_sec_make_nonce(guint8 *nonce, zbee_security_packet *packet) |
| 618 | | | { |
| 619 | | | |
| 620 | | | *(nonce++) = (guint8)((packet->src)>>0 & 0xff); |
| 621 | | | *(nonce++) = (guint8)((packet->src)>>8 & 0xff); |
| 622 | | | *(nonce++) = (guint8)((packet->src)>>16 & 0xff); |
| 623 | | | *(nonce++) = (guint8)((packet->src)>>24 & 0xff); |
| 624 | | | *(nonce++) = (guint8)((packet->src)>>32 & 0xff); |
| 625 | | | *(nonce++) = (guint8)((packet->src)>>40 & 0xff); |
| 626 | | | *(nonce++) = (guint8)((packet->src)>>48 & 0xff); |
| 627 | | | *(nonce++) = (guint8)((packet->src)>>56 & 0xff); |
| 628 | | | |
| 629 | | | *(nonce++) = (guint8)((packet->counter)>>0 & 0xff); |
| 630 | | | *(nonce++) = (guint8)((packet->counter)>>8 & 0xff); |
| 631 | | | *(nonce++) = (guint8)((packet->counter)>>16 & 0xff); |
| 632 | | | *(nonce++) = (guint8)((packet->counter)>>24 & 0xff); |
| 633 | | | |
| 634 | | | *(nonce++) = packet->control; |
Unused Value
The value assigned to nonce is never subsequently used on any execution path. |
|
| 635 | | | } |
| |