projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2bbb7de
)
Fix issue with TUN name assignment for VPN
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 9 Dec 2009 00:09:06 +0000
(
01:09
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 9 Dec 2009 00:09:06 +0000
(
01:09
+0100)
plugins/openconnect.c
patch
|
blob
|
history
diff --git
a/plugins/openconnect.c
b/plugins/openconnect.c
index
40acd82
..
d743642
100644
(file)
--- a/
plugins/openconnect.c
+++ b/
plugins/openconnect.c
@@
-66,7
+66,7
@@
static int kill_tun(char *tun_name)
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TUN | IFF_NO_PI;
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TUN | IFF_NO_PI;
- sprintf(ifr.ifr_name, tun_name);
+ sprintf(ifr.ifr_name,
"%s",
tun_name);
fd = open("/dev/net/tun", O_RDWR);
if (fd < 0) {
fd = open("/dev/net/tun", O_RDWR);
if (fd < 0) {