summaryrefslogtreecommitdiff
path: root/security/vpnc/files/patch-tunip.c
blob: e23dbc0dc2d2a9a9c3cab6be1b62ff9c068ca161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
--- 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);