Check if devops is valid before closing the device.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:56:01 +0000 (13:56 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:56:01 +0000 (13:56 +0100)
commitb12f122f1be89b49d8a3e39fb1b10c6e4d3ada94
treefd2080adec53b5fedd8fc18f7efc227b647f65a4
parent45a30f71572fab8e73c456737b7506b2cf12be25
Check if devops is valid before closing the device.

This fixes a segfault that occurs on exit if tinc fails before the
device is initialized (for example, if it fails to read the private
key).
src/net_setup.c