]> git.meshlink.io Git - meshlink/commit - src/bsd/device.c
Consistently allocate device and iface variables on the heap.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 3 Jan 2009 21:06:10 +0000 (22:06 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 3 Jan 2009 21:06:10 +0000 (22:06 +0100)
commitb069da90d67b49dce041f513a3855b8da3d82f80
treebe888ca7e63d485ce2d639f93243c3c097d1f857
parentf81cea3bdc8683b27188cd8f24a2de906a29eb81
Consistently allocate device and iface variables on the heap.

This fixes a segfault when no Device has been specified and tinc exits, and it
would try to free() a static string. Thanks to Borg for spottin.
src/bsd/device.c
src/cygwin/device.c
src/linux/device.c
src/mingw/device.c
src/raw_socket/device.c
src/solaris/device.c
src/uml_socket/device.c