mmaraya / port-mirroring

OpenWrt package for copying network packets without iptables
BSD 2-Clause "Simplified" License
103 stars 32 forks source link

CID 19978: Uninitialized scalar variable #25

Closed mmaraya closed 9 years ago

mmaraya commented 9 years ago

https://github.com/mmaraya/port-mirroring/blob/88fb1660e2689439edaa4913d44651bb6b4aea5b/port-mirroring.c#L562

CID 19978: Uninitialized scalar variable (UNINIT)
uninit_use: Using uninitialized value dstMask.

The variable will contain an arbitrary value left from earlier computations. In getSenderInterface: Use of an uninitialized variable (CWE-457)