ports/security/vpnc/files/patch-tunip.c
Steve Wills 39dddfb1cf security/vpnc: fix issue with destroying tun device on exit
While here, improve formatting and regenerate patches

PR:		241039
Submitted by:	kevans
Reported by:	Hrant Dadivanyan <hrant@dadivanyan.net>
2019-12-16 16:28:32 +00:00

10 lines
277 B
C

--- tunip.c.orig 2019-10-03 14:52:47 UTC
+++ tunip.c
@@ -1058,6 +1058,7 @@ void vpnc_doit(struct sa_block *s)
} else {
printf("VPNC started in foreground...\n");
}
+ tun_claim(s->tun_fd);
openlog("vpnc", LOG_PID | LOG_PERROR, LOG_DAEMON);
write_pidfile(pidfile);