Properly copy interface name if unknown.
authorTobias Brunner <tobias@strongswan.org>
Mon, 18 Apr 2011 14:10:36 +0000 (16:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Apr 2011 11:48:50 +0000 (13:48 +0200)
commitf526b35c455f39aad1fce80894459d9fe3d48e98
treedc3714fecbaac25cb1d5f561ea75b96e314ad7b3
parent82017bf417b60a5e72aee78f9c2c5237a1bf9a6f
Properly copy interface name if unknown.

We use a static string if the interface name is unknown, so using memcpy
with IFNAMSIZ is incorrect as that would overrun the static string.
src/libhydra/plugins/kernel_netlink/kernel_netlink_net.c