When the length is less than sizeof(cmd.ifname), the cmd.ifname will be printed uninitialized, which could cause information leakage. Fix this by copying the maximum size of ifname before printing it out.
This issue was found through static code analysis.
When the length is less than sizeof(cmd.ifname), the cmd.ifname will be printed uninitialized, which could cause information leakage. Fix this by copying the maximum size of ifname before printing it out.
This issue was found through static code analysis.
Fixes: a37b7e0f3b66 ("lldpad: initial git commit") Fixes: 3b559d8d0b52 ("VDP: vdptool first version")