]> tinc-vpn.org Git - tinc/blobdiff - src/bsd/device.c
Allow "tinc --force join" to accept all variables sent in an invitaiton.
[tinc] / src / bsd / device.c
index 5a572ba361d6ecdeab34ceeb682c456cabd9b5d0..0eeee6e93a84cc7907a3c8edd465b1940cc3a3e3 100644 (file)
@@ -298,10 +298,7 @@ static bool setup_device(void) {
                        struct ifreq ifr;
 
                        if(ioctl(device_fd, TAPGIFNAME, (void *)&ifr) == 0) {
-                               if(iface) {
-                                       free(iface);
-                               }
-
+                               free(iface);
                                iface = xstrdup(ifr.ifr_name);
                        }
                }