Merge branch 'keysegfault' of https://github.com/dechamps/tinc into 1.1
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 12 Jul 2014 20:25:55 +0000 (22:25 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 12 Jul 2014 20:25:55 +0000 (22:25 +0200)
src/net_setup.c

index 96a7224..d83c572 100644 (file)
@@ -1141,7 +1141,8 @@ void close_network_connections(void) {
 
        if (device_fd >= 0)
                io_del(&device_io);
-       devops.close();
+       if (devops.close)
+               devops.close();
 
        exit_control();