Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packDev_t: Clear out uninitialized memory garbage
If pDev is NULL (i.e. not found in associated devices list), only the first 2 bytes of the buffer (shortAddr) were filled (with INVALID_NODE_ADDR). All the remaining buffer contained uninitialized memory garbage. Hence the memset, to zero out the entire buffer beforehand. See Koenkk/zigbee2mqtt#13478 (comment) @slugzero Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
- Loading branch information