X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=cbfebc23866a85ff22078374b063b29041e7fa07;hp=f7db4c239f0428c5b2a86dc17b85f22d65d63709;hb=2ed154e73192d5e162544bc570abbb3a1df3ec83;hpb=721e4caee0f7c6e003c297c95fb6d93bd4102219 diff --git a/src/cygwin/device.c b/src/cygwin/device.c index f7db4c23..cbfebc23 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: device.c,v 1.1.2.13 2003/07/29 12:18:35 guus Exp $ + $Id: device.c,v 1.1.2.14 2003/07/29 23:21:01 guus Exp $ */ #include "system.h" @@ -139,8 +139,11 @@ bool setup_device(void) return false; } - device = adapterid; - iface = adaptername; + if(!device) + device = xstrdup(adapterid); + + if(!iface) + iface = xstrdup(adaptername); snprintf(tapname, sizeof(tapname), USERMODEDEVICEDIR "%s" TAPSUFFIX, device);