chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server/tun-unet: Fix stupidity in t_create.
[tripe]
/
server
/
tun-unet.c
diff --git
a/server/tun-unet.c
b/server/tun-unet.c
index 3274db1c3d07cdd3c03814568541b57008d4cc38..9a79dd858c365cdcbc47c6096ab73d6334ad54e4 100644
(file)
--- a/
server/tun-unet.c
+++ b/
server/tun-unet.c
@@
-127,7
+127,7
@@
static tunnel *t_create(peer *p, char **ifn)
if (ioctl(t->f.fd, UNIOCGINFO, &uni)) {
a_warn("TUN", "-", "unet", "getinfo-error", "?ERRNO", A_END);
if (ioctl(t->f.fd, UNIOCGINFO, &uni)) {
a_warn("TUN", "-", "unet", "getinfo-error", "?ERRNO", A_END);
- return (
"<error>"
);
+ return (
0
);
}
*ifn = xstrdup(uni.uni_ifname);
T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'",
}
*ifn = xstrdup(uni.uni_ifname);
T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'",